Thứ Ba, 27 Tháng 10 , 2026
MANHPC
  • Trang chủ
  • HƯỚNG DẪN
    Hướng dẫn chặn cập nhật driver GPU qua Windows Update

    Hướng dẫn chặn cập nhật driver GPU qua Windows Update

    Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows

    Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows

    Hướng dẫn rebuild bộ cài Windows – Phần 3

    Hướng dẫn rebuild bộ cài Windows – Phần 2

  • HỆ ĐIỀU HÀNH
    • MANHPC
      • NEWEST
      • NEWEST UPDATE
      • MOST VIEW
    • TIN TỨC
      • WINDOWS INSIDER
  • WINDOWS PE
    AnkhTech WinPE v15

    AnkhTech WinPE

    Tổng hợp một số công cụ sao lưu và phục hồi dữ liệu

    Tổng hợp một số công cụ sao lưu và phục hồi dữ liệu

    Tổng hợp một số công cụ quản lý và phân vùng đĩa cứng

    Tổng hợp một số công cụ quản lý và phân vùng đĩa cứng

    Tổng hợp một số công cụ gỡ bỏ mật khẩu Windows

    Tổng hợp một số công cụ gỡ bỏ mật khẩu Windows

  • SERIES
    • HƯỚNG DẪN REBUILD WINDOWS
      • Phần 1
      • Phần 2
      • Phần 3
    • HƯỚNG DẪN CẤU HÌNH FILE TRẢ LỜI TỰ ĐỘNG
      • Phần 1
      • Phần 2
      • Phần 3
      • Phần 4
      • Phần 5
    • BỘ CÀI WINDOWS NGUYÊN GỐC
      • Windows 11
      • Windows 10
    • BỘ CÀI WINDOWS 11
      • Windows 11 26H1
      • Windows 11 25H2
      • Windows 11 24H2
      • Windows 11 23H2
      • Windows 11 22H2
      • Windows 11 21H2
      • Windows 11 LTSC
    • BỘ CÀI WINDOWS 10
      • Windows 10 22H2
      • Windows 10 21H2
      • Windows 10 21H1 và 2004
      • Windows 10 LTSC
    • BỘ CÀI WINDOWS 7
  • TOPIC
    • WINDOWS ENTERPRISE
    • WINDOWS ENTERPRISE G
    • WINDOWS ENTERPRISE LTSC
    • WINDOWS PRO WORKSTATION
    • WINDOWS PRO
  • DONATE
  • LIÊN HỆ
Không có kết quả
Xem tất cả kết quả
MANHPC
  • Trang chủ
  • HƯỚNG DẪN
    Hướng dẫn chặn cập nhật driver GPU qua Windows Update

    Hướng dẫn chặn cập nhật driver GPU qua Windows Update

    Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows

    Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows

    Hướng dẫn rebuild bộ cài Windows – Phần 3

    Hướng dẫn rebuild bộ cài Windows – Phần 2

  • HỆ ĐIỀU HÀNH
    • MANHPC
      • NEWEST
      • NEWEST UPDATE
      • MOST VIEW
    • TIN TỨC
      • WINDOWS INSIDER
  • WINDOWS PE
    AnkhTech WinPE v15

    AnkhTech WinPE

    Tổng hợp một số công cụ sao lưu và phục hồi dữ liệu

    Tổng hợp một số công cụ sao lưu và phục hồi dữ liệu

    Tổng hợp một số công cụ quản lý và phân vùng đĩa cứng

    Tổng hợp một số công cụ quản lý và phân vùng đĩa cứng

    Tổng hợp một số công cụ gỡ bỏ mật khẩu Windows

    Tổng hợp một số công cụ gỡ bỏ mật khẩu Windows

  • SERIES
    • HƯỚNG DẪN REBUILD WINDOWS
      • Phần 1
      • Phần 2
      • Phần 3
    • HƯỚNG DẪN CẤU HÌNH FILE TRẢ LỜI TỰ ĐỘNG
      • Phần 1
      • Phần 2
      • Phần 3
      • Phần 4
      • Phần 5
    • BỘ CÀI WINDOWS NGUYÊN GỐC
      • Windows 11
      • Windows 10
    • BỘ CÀI WINDOWS 11
      • Windows 11 26H1
      • Windows 11 25H2
      • Windows 11 24H2
      • Windows 11 23H2
      • Windows 11 22H2
      • Windows 11 21H2
      • Windows 11 LTSC
    • BỘ CÀI WINDOWS 10
      • Windows 10 22H2
      • Windows 10 21H2
      • Windows 10 21H1 và 2004
      • Windows 10 LTSC
    • BỘ CÀI WINDOWS 7
  • TOPIC
    • WINDOWS ENTERPRISE
    • WINDOWS ENTERPRISE G
    • WINDOWS ENTERPRISE LTSC
    • WINDOWS PRO WORKSTATION
    • WINDOWS PRO
  • DONATE
  • LIÊN HỆ
Không có kết quả
Xem tất cả kết quả
MANHPC
Không có kết quả
Xem tất cả kết quả

TRANG CHỦ HƯỚNG DẪN

Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 4

Giới thiệu một số file trả lời tự động mẫu dùng cho oobeSystem pass

NỘI DUNG BÀI VIẾT

  1. File mẫu dùng cho oobeSystem pass
    1. Windows 7
    2. Windows 10 và Windows 11
  2. Cấu hình tự động đăng nhập vào tài khoản dùng (sysprep)
    1. Windows 7
    2. Windows 10 và Windows 11
  3. Cấu hình tự động đăng nhập vào tài khoản dùng (autounattend.xml)
  4. Kết luận

oobeSystem pass được khởi chạy sau khi máy tính khởi động lại lần thứ hai trong quá trình cài đặt. Giai đoạn này sẽ cấu hình các thiết lập được áp dụng trong lần khởi động đầu tiên của người dùng cuối hay còn được gọi là Out-Of-Box Experience (OOBE). oobeSystem được xử lý trước khi người dùng đăng nhập vào Windows lần đầu tiên.

Out-of-Box-Experience (OOBE) sẽ được khởi chạy đầu tiên khi người dùng khởi động một máy tính mới đã được cấu hình. OOBE chạy trước khi Windows shell hoặc bất kỳ phần mềm bổ sung nào chạy và nó thực hiện một tập hợp nhỏ các tác vụ được yêu cầu để cấu hình và chạy Windows.

Pass này thường được sử dụng để cấu hình các các tùy chọn Windows Shell như: thiết lập ngôn ngữ và địa điểm, tạo mới tài khoản người dùng, cấu hình taskbar…

Khi các bạn thao tác với Windows System Image Manager thì cần chú ý một số component hay được sử dụng như: Microsoft-Windows-International-Core (cấu hình ngôn ngữ, địa điểm, bàn phím…), Microsoft-Windows-Shell-Setup (cấu hình Taskbar, UserAccounts, FirstLogonCommands, TimeZone, EULAPage, NetworkLocation, ProtectYourPC, WirelessSetup,…). Cách thao tác thì giống với Phần 2 về windowsPE pass. Còn ở đây để cho nhanh mình sẽ đưa nội dung file trả lời mẫu mà bạn có thể sử dụng được luôn.

File mẫu dùng cho oobeSystem pass

Windows 7

 <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Description>Control Panel View</Description>
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                <Order>1</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                <Description>Control Panel Icon Size</Description>
                <Order>2</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
        </FirstLogonCommands>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <NetworkLocation>Work</NetworkLocation>
            <ProtectYourPC>3</ProtectYourPC>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
            <Link2></Link2>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value>123456a@</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Admin</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Description>Control Panel View</Description>
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                <Order>1</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                <Description>Control Panel Icon Size</Description>
                <Order>2</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
        </FirstLogonCommands>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <NetworkLocation>Work</NetworkLocation>
            <ProtectYourPC>3</ProtectYourPC>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
            <Link2></Link2>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value>123456a@</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Admin</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
</settings>

Windows 10 và Windows 11

        <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Description>Open File Explorer to This PC</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>2</Order>
                <Description>Control Panel 1</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>3</Order>
                <Description>Control Panel 2</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
        </FirstLogonCommands>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
            <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk</Link1>
            <Link2>%programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk</Link2>
            <Link3></Link3>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value>123456a@</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
                <LocalAccount wcm:action="add">
                    <Description>Daily standard account</Description>
                    <DisplayName>Vuong Viet Dung</DisplayName>
                    <Group>Users</Group>
                    <Name>dungvv</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Description>Open File Explorer to This PC</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>2</Order>
                <Description>Control Panel 1</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>3</Order>
                <Description>Control Panel 2</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
        </FirstLogonCommands>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
            <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk</Link1>
            <Link2>%programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk</Link2>
            <Link3></Link3>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value>123456a@</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
                <LocalAccount wcm:action="add">
                    <Description>Daily standard account</Description>
                    <DisplayName>Vuong Viet Dung</DisplayName>
                    <Group>Users</Group>
                    <Name>dungvv</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
</settings>

Ảnh demo khi tạo tài khoản bằng file trả lời tự động trong oobeSystem pass

Màn hình đăng nhập đầu tiên

Bắt buộc phải đặt mật khẩu

Trong hình đầu tiên thì trong file unattend.xml đã có thông tin mật khẩu của user manhnd rồi cho nên đến bước này chỉ cần đăng nhập là xong. Với hình thứ hai là tài khoản dungvv chưa được đặt mật khẩu trong file unattend.xml vì vậy hệ thống sẽ bắt phải đặt mật khẩu lần đầu tiên. Nhấn OK để đặt mật khẩu.

Cấu hình tự động đăng nhập vào tài khoản dùng (sysprep)

Trong trường hợp bạn không muốn đặt mật khẩu cho user manhnd (tự động đăng nhập vào tài khoản manhnd) thì bạn có thể sử dụng đoạn file xml sau:

Windows 7

 <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Description>Control Panel View</Description>
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                <Order>1</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                <Description>Control Panel Icon Size</Description>
                <Order>2</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
        </FirstLogonCommands>
        <AutoLogon>
            <Password>
                <Value></Value>
                <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>manhnd</Username>
        </AutoLogon>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
            <Link2></Link2>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Description>Control Panel View</Description>
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                <Order>1</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <CommandLine>reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                <Description>Control Panel Icon Size</Description>
                <Order>2</Order>
                <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
        </FirstLogonCommands>
        <AutoLogon>
            <Password>
                <Value></Value>
                <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>manhnd</Username>
        </AutoLogon>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
            <Link2></Link2>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
</settings>

Windows 10 và Windows 11

    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <InputLocale>1033:00000409</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Description>Open File Explorer to This PC</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>2</Order>
                <Description>Control Panel 1</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>3</Order>
                <Description>Control Panel 2</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
        </FirstLogonCommands>
        <AutoLogon>
            <Password>
                <Value></Value>
                <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>manhnd</Username>
        </AutoLogon>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
            <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk</Link1>
            <Link2>%programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk</Link2>
            <Link3></Link3>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Description>Open File Explorer to This PC</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>2</Order>
                <Description>Control Panel 1</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
                <Order>3</Order>
                <Description>Control Panel 2</Description>
                <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
            </SynchronousCommand>
        </FirstLogonCommands>
        <AutoLogon>
            <Password>
                <Value></Value>
                <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>manhnd</Username>
        </AutoLogon>
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <NetworkLocation>Work</NetworkLocation>
            <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
        </OOBE>
        <TaskbarLinks>
            <Link0>%programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link0>
            <Link1>%programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk</Link1>
            <Link2>%programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk</Link2>       
            <Link3></Link3>
        </TaskbarLinks>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Description>Local admin account</Description>
                    <DisplayName>Nguyen Duc Manh</DisplayName>
                    <Group>Administrators</Group>
                    <Name>manhnd</Name>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <TimeZone>SE Asia Standard Time</TimeZone>
    </component>
</settings>

Cấu hình tự động đăng nhập vào tài khoản dùng (autounattend.xml)

Nội dung bên trên là dùng cho file unattend.xml được sử dụng khi bạn chạy lệnh sysprep.exe. Còn trong trường hợp bạn muốn dùng nó ở ngay thư mục gốc (root) của bộ cài (ngang hàng với setup.exe) thì bạn có thể áp dụng nội dung file autounattend.xml như sau:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SetupUILanguage>
        <UILanguage>en-US</UILanguage>
      </SetupUILanguage>
      <UILanguage>en-US</UILanguage>
      <UserLocale>en-US</UserLocale>
      <SystemLocale>en-US</SystemLocale>
      <InputLocale>0409:00000409</InputLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UserData>
        <AcceptEula>true</AcceptEula>
      </UserData>
    </component>
  </settings>
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UserAccounts>
        <LocalAccounts>
          <LocalAccount wcm:action="add">
            <Password>
              <Value />
            </Password>
            <Name>manhnd</Name>
            <DisplayName>NGUYEN DUC MANH</DisplayName>
            <Group>Administrators</Group>
          </LocalAccount>
        </LocalAccounts>
      </UserAccounts>
      <AutoLogon>
        <Enabled>true</Enabled>
        <LogonCount>8888</LogonCount>
        <Username>manhnd</Username>
      </AutoLogon>
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <HideLocalAccountScreen>true</HideLocalAccountScreen>
        <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <ProtectYourPC>3</ProtectYourPC>
        <SkipMachineOOBE>true</SkipMachineOOBE>
      </OOBE>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UILanguage>en-US</UILanguage>
      <UserLocale>en-US</UserLocale>
      <SystemLocale>en-US</SystemLocale>
      <InputLocale>0409:00000409</InputLocale>
    </component>
  </settings>
</unattend>

Chú ý bên trong <settings pass=”oobeSystem”> là những component dùng cho việc tự động đăng nhập vào tài khoản manhnd. Bạn có thể thêm các component khác vào file này. Bạn có thể sửa các component: <Name>, <DisplayName>, <Group> (nếu bạn nắm rõ) , <Username>, <ProtectYourPC> (nó chính là UAC: 1 là tắt và 4 là cao nhất, mặc định là 3).

Kết luận

Như vậy tôi đã chia sẽ với các bạn các thông tin về oobesystem pass, cùng với đó là hai file .xml mẫu mà tôi đã thực tế triển khai. Bạn có thể copy các lệnh bên trên tại đây.Trong quá trình thao tác thực tế nếu còn vướng mắc điều gì bạn hãy để lại bình luận phía bên dưới nhé. Cảm ơn các bạn đã đọc bài!

Chúc bạn thành công!

Xem thêm:

  • Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 1
  • Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 2
  • Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 3
  • Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 5
Thẻ: AUTOUNATTEND
BÀI TRƯỚC

Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 3

BÀI TIẾP THEO

Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 5

BÀI VIẾT TƯƠNG TỰ

Hướng dẫn chặn cập nhật driver GPU qua Windows Update
HƯỚNG DẪN

Hướng dẫn chặn cập nhật driver GPU qua Windows Update

8 Tháng 1, 2026
375
Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows
HƯỚNG DẪN

Hướng dẫn tăng số lượng kết nối Remote Desktop trên Windows

11 Tháng 7, 2025
15.2k
HƯỚNG DẪN

Hướng dẫn rebuild bộ cài Windows – Phần 3

11 Tháng 7, 2025
14.4k
HƯỚNG DẪN

Hướng dẫn rebuild bộ cài Windows – Phần 2

8 Tháng 8, 2026
13k
HƯỚNG DẪN

Hướng dẫn rebuild bộ cài Windows – Phần 1

11 Tháng 7, 2025
19.5k
HƯỚNG DẪN

Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 5

11 Tháng 7, 2025
3.9k

BỘ CÀI WINDOWS ĐƯỢC YÊU THÍCH

Bộ cài Windows 10 Pro 22H2

Bộ cài Windows 10 Pro 22H2 x64

13 Tháng 5, 2026
72.8k
Bộ cài Windows 10 Enterprise LTSC 2021

Bộ cài Windows 10 Enterprise LTSC 2021

13 Tháng 5, 2026
28.9k
Bộ cài Windows 10 version 22H2 nguyên gốc

Bộ cài Windows 10 version 22H2 nguyên gốc

14 Tháng 5, 2026
28.6k
Bộ cài Windows 11 All In One

Bộ cài Windows 11 26H2 All In One

10 Tháng 10, 2026
25.1k
Bộ cài Windows 10 All In One

Bộ cài Windows 10 22H2 All In One

13 Tháng 5, 2026
19.7k
Bộ cài Windows 7 Ultimate All In One

Bộ cài Windows 7 Ultimate

13 Tháng 5, 2026
17.4k
Bộ cài Windows 10 Enterprise LTSC 2019

Bộ cài Windows 10 Enterprise LTSC 2019

13 Tháng 5, 2026
16.7k
Bộ cài Windows 11 Pro version 22H2

Bộ cài Windows 11 Pro 22H2

13 Tháng 5, 2026
16.5k
Bộ cài Windows 7 SP1 All In One

Bộ cài Windows 7 SP1 All In One

13 Tháng 5, 2026
16.2k
Bộ cài Windows 10 Pro 21H2 x64

Bộ cài Windows 10 Pro 21H2 x64

13 Tháng 5, 2026
13.9k

BỘ CÀI WINDOWS MỚI

Bộ cài Windows 11 26H2 nguyên gốc

8 Tháng 10, 2026
149
Bộ cài Windows 11 IoT Enterprise LTSC 26H1

Bộ cài Windows 11 IoT Enterprise LTSC 26H1

26 Tháng 5, 2026
2.1k
Bộ cài Windows 11 Enterprise G 26H1

Bộ cài Windows 11 Enterprise G 26H1

26 Tháng 5, 2026
636
Bộ cài Windows 11 Pro 26H1

Bộ cài Windows 11 Pro 26H1

13 Tháng 5, 2026
2.2k
Bộ Cài Windows 11 Pro Workstation 26H1

Bộ cài Windows 11 Pro for Workstations 26H1

13 Tháng 5, 2026
672
Bộ cài Windows 11 Enterprise 26H1

Bộ cài Windows 11 Enterprise 26H1

13 Tháng 5, 2026
461
Bộ cài Windows 11 Pro 25H2

Bộ cài Windows 11 Pro 25H2

13 Tháng 5, 2026
4.1k
Bộ Cài Windows 11 Pro Workstation 25H2

Bộ cài Windows 11 Pro for Workstations 25H2

13 Tháng 5, 2026
1.1k
Bộ Cài Windows 11 Enterprise 25H2

Bộ cài Windows 11 Enterprise 25H2

13 Tháng 5, 2026
1.1k

Bộ cài Windows 11 Enterprise GS 25H2

13 Tháng 5, 2026
917

BÀI TIẾP THEO

Hướng dẫn tạo và cấu hình file trả lời tự động unattend.xml – Phần 5

MANHPC BLOG

Website chia sẻ kiến thức Hệ điều hành Windows miễn phí

Email: [email protected]

DMCA.com Protection Status

SERIES BÀI VIẾT

  • Hướng dẫn Rebuild Windows

  • Hướng dẫn cấu hình file trả lời tự động

  • Bộ cài Windows 7

  • Bộ cài Windows 10

  • Bộ cài Windows 11

  • Bộ cài Windows nguyên gốc

© 2026 MANHPC BLOG

Trang chủ | Liên hệ | Chính sách bảo mật | Sơ đồ trang | Donate | Dịch vụ

Không có kết quả
Xem tất cả kết quả
  • TRANG CHỦ
  • HƯỚNG DẪN
  • HỆ ĐIỀU HÀNH
    • MANHPC
      • NEWEST
      • NEWEST UPDATE
      • MOST VIEW
    • TIN TỨC
      • WINDOWS INSIDER
  • WINDOWS PE
  • SERIES
    • HƯỚNG DẪN REBUILD WINDOWS
    • HƯỚNG DẪN CẤU HÌNH FILE TRẢ LỜI TỰ ĐỘNG
    • BỘ CÀI WINDOWS NGUYÊN GỐC
      • Windows 11
      • Windows 10
    • BỘ CÀI WINDOWS 11
      • Windows 11 26H1
      • Windows 11 25H2
      • Windows 11 24H2
      • Windows 11 23H2
      • Windows 11 22H2
      • Windows 11 21H2
      • Windows 11 LTSC
    • BỘ CÀI WINDOWS 10
      • Windows 10 22H2
      • Windows 10 21H2
      • Windows 10 21H1 và 2004
      • Windows 10 LTSC
    • BỘ CÀI WINDOWS 7
  • CHỦ ĐỀ
  • GOOGLE NEWS
  • DONATE
  • LIÊN HỆ

© 2021 ManhPC Blog - All Right Reserved.

wpDiscuz