You dont have javascript enabled! Please enable it!
Thứ Bảy, 10 Tháng 5 , 2025
NEWS
MANHPC
  • Trang chủ
  • HƯỚNG DẪN
    Hướng dẫn cách 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 3

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

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

    Hướng dẫn rebuild hệ điều hành Windows - Phần 1

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

  • HỆ ĐIỀU HÀNH
    • MANHPC
    • TIN TỨC
      • WINDOWS INSIDER
      • WINDOWS UPDATE
  • WINDOWS PE
    TeraByte Drive Image Backup Restore

    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

    Passcape Reset Windows Password Advanced Edition

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

    PTDBOOT UNIVERSAL - Công cụ cứu hộ máy tính.

    PTDBOOT UNIVERSAL 2025 – Công cụ cứu hộ máy tính

  • 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 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 LTSC
    • BỘ CÀI WINDOWS 7
  • DONATE
  • DỊCH VỤ
  • 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 cách 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 3

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

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

    Hướng dẫn rebuild hệ điều hành Windows - Phần 1

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

  • HỆ ĐIỀU HÀNH
    • MANHPC
    • TIN TỨC
      • WINDOWS INSIDER
      • WINDOWS UPDATE
  • WINDOWS PE
    TeraByte Drive Image Backup Restore

    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

    Passcape Reset Windows Password Advanced Edition

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

    PTDBOOT UNIVERSAL - Công cụ cứu hộ máy tính.

    PTDBOOT UNIVERSAL 2025 – Công cụ cứu hộ máy tính

  • 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 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 LTSC
    • BỘ CÀI WINDOWS 7
  • DONATE
  • DỊCH VỤ
  • 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Ủ BÀI VIẾT 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

Giới thiệu một số file unattend.xml mẫu

NỘI DUNG BÀI VIẾT

  1. File trả lời tự động unattend.xml tổng hợp
  2. Một số component tham khảo

Qua theo dõi 4 phần vừa qua thì bạn đã có được kiến thức cớ bản về tạo và cấu hình file trả lời tự động unattend.xml. Trong phần này tôi sẽ chia sẻ một số component và thủ thuật khác mà bạn có thể sử dụng.

File trả lời tự động unattend.xml tổng hợp

Đây là những file mà tôi đã triển khai thực tế ở những bộ cài mà tôi chia sẻ trên website này. Tôi chia là 2 file autounattend.xml và unattend.xml với cấu trúc như sau:

File autounattend.xml chỉ có duy nhất 1 pass windowsPE và chỉ thực thi trong giai đoạn pass 1. Ngoài ra bạn cũng có thể thêm các pass khác vào đây nhưng bắt buộc tên file phải là autounattend.xml và đặt ở vị trí ngang hàng với file setup.exe trong thư mục gốc của bộ cài.

File unatend.xml sẽ bao gồm tất cả các pass còn lại và file này sẽ nằm ở vị trí C:\Windows\System32\Sysprep

Windows 7

autounattend.xml

<?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="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">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>1033:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <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>
            <InputLocale>1033:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-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">
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <EnableFirewall>true</EnableFirewall>
        </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>
            <EnableFirewall>true</EnableFirewall>
        </component>
    </settings>
</unattend>

unattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </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">
            <copyprofile>true</copyprofile>
            <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">
            <copyprofile>true</copyprofile>
            <TimeZone>SE Asia Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-SystemRestore-Main" 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">
            <DisableSR>1</DisableSR>
        </component>
        <component name="Microsoft-Windows-SystemRestore-Main" 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">
            <DisableSR>1</DisableSR>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add Computer Desktop Icon 1</Description>
                    <Order>1</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {871C5380-42A0-1069-A2EA-08002B30309D}.default /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add Computer Desktop Icon 2</Description>
                    <Order>2</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>3</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d MANHPC /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>4</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>5</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d "8h00 - 22h00" /f</Path>
                </RunSynchronousCommand> 
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>6</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f</Path>
                </RunSynchronousCommand> 
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
        <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add Computer Desktop Icon 1</Description>
                    <Order>1</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {871C5380-42A0-1069-A2EA-08002B30309D}.default /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add Computer Desktop Icon 2</Description>
                    <Order>2</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>3</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d MANHPC /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>4</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>5</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d "8h00 - 22h00" /f</Path>
                </RunSynchronousCommand> 
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>6</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f</Path>
                </RunSynchronousCommand> 
            </RunSynchronous>
        </component>
        </component>
    </settings>
    <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>
            <UILanguage>en-US</UILanguage>
            <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>
            <UILanguage>en-US</UILanguage>
            <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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            </OOBE>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>Control Panel View</Description>
                    <Order>1</Order>
                    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Description>Control Panel Icon Size</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>
            <TaskbarLinks>
                <Link0>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
                <Link1>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
                <Link2></Link2>
            </TaskbarLinks>
            <TimeZone>S.E. 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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            </OOBE>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>Control Panel View</Description>
                    <Order>1</Order>
                    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                    <RequiresUserInput>true</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Description>Control Panel Icon Size</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>
            <TaskbarLinks>
                <Link0>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk</Link0>
                <Link1>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk</Link1>
                <Link2></Link2>
            </TaskbarLinks>
            <TimeZone>S.E. Asia Standard Time</TimeZone>
        </component>
    </settings>
</unattend>

Windows 10

autounattend.xml

<?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">
            <InputLocale>1033:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE" 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>
            <UserLocale>en-US</UserLocale>
        </component>
                <component name="Microsoft-Windows-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">
            <UserData>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </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>
</unattend>

unattend.xml (dùng chung cho cả Windows 11)

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">               
            <SkipRearm>1</SkipRearm>
        </component>
        <component name="Microsoft-Windows-Security-SPP" 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">               
            <SkipRearm>1</SkipRearm>
        </component>
        <component name="Microsoft-Windows-WorkstationService" 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">               
            <AllowInsecureGuestAuth>1</AllowInsecureGuestAuth>
        </component>
        <component name="Microsoft-Windows-WorkstationService" 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">               
            <AllowInsecureGuestAuth>1</AllowInsecureGuestAuth>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Allow Insecure Guest Auth</Description>
                    <Order>1</Order>
                    <Path>cmd /c  reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Disable Reserves</Description>
                    <Order>2</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Disable Acrylic Background On Logon</Description>
                    <Order>3</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /v DisableAcrylicBackgroundOnLogon /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Copy To folder</Description>
                    <Order>4</Order>
                    <Path>cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13} /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Move To folder</Description>
                    <Order>5</Order>
                    <Path>cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13} /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add This PC Desktop Icon 1</Description>
                    <Order>6</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {871C5380-42A0-1069-A2EA-08002B30309D}.default /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add This PC Desktop Icon 2</Description>
                    <Order>7</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>8</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d AKIO /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>9</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>10</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d 24/7 /f</Path>
                </RunSynchronousCommand> 
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>11</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f</Path>
                </RunSynchronousCommand>             
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Allow Insecure Guest Auth</Description>
                    <Order>1</Order>
                    <Path>cmd /c  reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                 <RunSynchronousCommand wcm:action="add">
                    <Description>Disable Reserves</Description>
                    <Order>2</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Disable Acrylic Background On Logon</Description>
                    <Order>3</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /v DisableAcrylicBackgroundOnLogon /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Copy To folder</Description>
                    <Order>4</Order>
                    <Path>cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13} /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Move To folder</Description>
                    <Order>5</Order>
                    <Path>cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13} /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add This PC Desktop Icon 1</Description>
                    <Order>6</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {871C5380-42A0-1069-A2EA-08002B30309D}.default /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Add This PC Desktop Icon 2</Description>
                    <Order>7</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>8</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d AKIO /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>9</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>10</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d 24/7 /f</Path>
                </RunSynchronousCommand> 
                <RunSynchronousCommand wcm:action="add">
                    <Description>Support URL</Description>
                    <Order>11</Order>
                    <Path>cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f</Path>
                </RunSynchronousCommand>             
            </RunSynchronous>
        </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">
            <copyprofile>true</copyprofile>
        </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">
            <copyprofile>true</copyprofile>
        </component>
    </settings>
    <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>1</ProtectYourPC>
            </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>
            <RegisteredOrganization>MANHPC</RegisteredOrganization>
            <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>1</ProtectYourPC>
            </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>
            <TimeZone>SE Asia Standard Time</TimeZone>
        </component>
    </settings>
</unattend>

Windows 11

autounattend.xml

<?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">
            <InputLocale>1033:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </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>
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /d 1 /t reg_dword /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /d 1 /t reg_dword /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /d 1 /t reg_dword /f</Path>
                    </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /d 1 /t reg_dword /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>5</Order>
                    <Path>reg add HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /d 1 /t reg_dword /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>
Lưu ý: Bạn không sử dụng file autounattend.xml cho bộ cài Consumer hoặc bộ cài được tải về từ https://www.microsoft.com/en-us/software-download/windows10 và https://www.microsoft.com/en-us/software-download/windows11 bởi vì những file tải trực tiếp từ trang Software download của Microsoft nó cũng chính là bản Consumer có cùng mã SHA1 nhưng khác tên.

Một số component tham khảo

Thêm driver vào bộ cài (không tích hợp vào file install)

  1. Tạo folder $WinPEDriver$ ngang hàng với folder sources.
  2. Thêm vào file AutoUnattend.xml bên dưới <settings pass=”windowsPE”>
<component name="Microsoft-Windows-PnpCustomizationsWinPE" 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">
    <DriverPaths>
        <PathAndCredentials wcm:action="add" wcm:keyValue="1">
            <Path>$WinPEDriver$</Path>
        </PathAndCredentials>
    </DriverPaths>
</component>
<component name="Microsoft-Windows-PnpCustomizationsWinPE" 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">
    <DriverPaths>
        <PathAndCredentials wcm:action="add" wcm:keyValue="1">
            <Path>$WinPEDriver$</Path>
        </PathAndCredentials>
    </DriverPaths>
</component>

OEMInformation

Việc thêm thông tin OEM vào hệ điều hành ngoài cách chạy lệnh add vào registry thì chúng ta còn có cách sử dụng lệnh <OEMInformation>

   <settings pass="specialize">
        <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">
            <OEMInformation>
                <Logo>%windir%\Windows\System32\oemlogo.bmp</Logo>
                <Manufacturer>AKIO</Manufacturer>
                <SupportHours>08:30 - 16:30</SupportHours>
                <SupportPhone>+84 91 664 8537</SupportPhone>
                <SupportURL>https://manhpc.com</SupportURL>
            </OEMInformation>
     </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">
            <OEMInformation>
                <Logo>%windir%\Windows\System32\oemlogo.bmp</Logo>
                <Manufacturer>AKIO</Manufacturer>
                <SupportHours>08:30 - 16:30</SupportHours>
                <SupportPhone>+84 91 664 8537</SupportPhone>
                <SupportURL>https://manhpc.com</SupportURL>
            </OEMInformation>
     </component>
   </settings>

hoặc:

   <settings pass="oobe">
        <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">
            <OEMInformation>
                <Logo>%windir%\Windows\System32\oemlogo.bmp</Logo>
                <Manufacturer>AKIO</Manufacturer>
                <SupportHours>08:30 - 16:30</SupportHours>
                <SupportPhone>+84 91 664 8537</SupportPhone>
                <SupportURL>https://manhpc.com</SupportURL>
            </OEMInformation>
     </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">
            <OEMInformation>
                <Logo>%windir%\Windows\System32\oemlogo.bmp</Logo>
                <Manufacturer>AKIO</Manufacturer>
                <SupportHours>08:30 - 16:30</SupportHours>
                <SupportPhone>+84 91 664 8537</SupportPhone>
                <SupportURL>https://manhpc.com</SupportURL>
            </OEMInformation>
     </component>
   </settings>

<DiskConfiguration>

Lệnh này chỉ dùng khi bạn triển khai hàng loạt cho nhiều máy tính mới. Không sử dụng khi cài lại windows mà trên đĩa cứng đang có dữ liệu.

<Themes>

<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">
         <Themes>
             <DesktopBackground>%windir%\system32\OEM\manhpc.bmp</DesktopBackground>
             <ThemeName>MANHPC Theme</ThemeName>
         </Themes>
     </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">
         <Themes>
             <DesktopBackground>%windir%\system32\OEM\manhpc.bmp</DesktopBackground>
             <ThemeName>MANHPC Theme</ThemeName>
         </Themes>
      </component>
</settings>

Enable tài khoản Administrator built-in

<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" 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">
    <RunSynchronous>
        <RunSynchronousCommand wcm:action="add">
            <Description>EnableAdmin</Description>
            <Order>1</Order>
            <Path>cmd /c net user Administrator /active:yes</Path>
        </RunSynchronousCommand>
    </RunSynchronous>
</component>
<component name="Microsoft-Windows-Deployment" 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">
    <RunSynchronous>
        <RunSynchronousCommand wcm:action="add">
            <Description>EnableAdmin</Description>
            <Order>1</Order>
            <Path>cmd /c net user Administrator /active:yes</Path>
        </RunSynchronousCommand>
    </RunSynchronous>
</component>
</settings>

Tự động đăng nhập vào tài khoản Administrator

Để tự động đăng nhập vào tài khoản Administrator cao nhất của hệ thống khi cài đặt Windows thì bạn cần phải enable nó lên trong settings pass=”specialize”. Tiếp theo bạn thêm đoạn bên dưới vào 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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>3</ProtectYourPC>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
                <SkipMachineOOBE>true</SkipMachineOOBE>
            </OOBE>
</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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>3</ProtectYourPC>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
                <SkipMachineOOBE>true</SkipMachineOOBE>
            </OOBE>
</component>

SYSTEM VARIABLES

SYSTEM:
%systemdrive%             > C:
%homedrive%               > C:
%windir%                  > C:\Windows
%systemroot%              > C:\Windows
%programfiles%            > C:\Program Files
%programfiles(x86)%       > C:\Program Files (x86)
%commonprogramfiles%      > C:\Program Files\Common Files
%commonprogramfiles(x86)% > C:\Program Files (x86)\Common Files
%programdata%             > C:\ProgramData
%allusersprofile%         > C:\ProgramData
USER:
%userprofile%             > C:\Users\manhnd
%homepath%                > \Users\manhnd
%appdata%                 > C:\Users\manhnd\AppData\Roaming
%localappdata%            > C:\Users\manhnd\AppData\Local
%public%                  > C:\Users\Public

Một số lệnh tạo Partitions

CreatePartitions-BIOS:

rem == CreatePartitions-BIOS.txt ==
rem == These commands are used with DiskPart to
rem    create three partitions
rem    for a BIOS/MBR-based computer.
rem    Adjust the partition sizes to fill the drive
rem    as necessary. ==
select disk 0
clean
rem == 1. System partition ======================
create partition primary size=100
format quick fs=ntfs label="System"
assign letter="S"
active
rem == 2. Windows partition =====================
rem ==    a. Create the Windows partition =======
create partition primary
rem ==    b. Create space for the recovery tools 
shrink minimum=500
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools
rem                (winre.wim)                 **
rem ==    c. Prepare the Windows partition ======
format quick fs=ntfs label="Windows"
assign letter="W"
rem == 3. Recovery partition ====================
create partition primary
format quick fs=ntfs label="Recovery image"
assign letter="R"
set id=27
list volume
exit

CreatePartitions-BIOS-FFU:

rem == CreatePartitions-BIOS-FFU.txt ==
rem == These commands are used with DiskPart to
rem    create three partitions
rem    for a BIOS/MBR-based computer.
rem    Adjust the partition sizes to fill the drive
rem    as necessary. ==
select disk 0
clean
rem == 1. System partition ======================
create partition primary size=100
format quick fs=ntfs label="System"
assign letter="S"
active
rem == 2. Windows partition =====================
rem ==    a. Create the Windows partition =======
create partition primary
rem ==    c. Prepare the Windows partition ======
format quick fs=ntfs label="Windows"
assign letter="W"
list volume
exit

CreatePartitions-UEFI:

rem == CreatePartitions-UEFI.txt ==
rem == These commands are used with DiskPart to
rem    create four partitions
rem    for a UEFI/GPT-based PC.
rem    Adjust the partition sizes to fill the drive
rem    as necessary. ==
select disk 0
clean
convert gpt
rem == 1. System partition =========================
create partition efi size=100
rem    ** NOTE: For Advanced Format 4Kn drives,
rem               change this value to size = 260 **
format quick fs=fat32 label="System"
assign letter="S"
rem == 2. Microsoft Reserved (MSR) partition =======
create partition msr size=16
rem == 3. Windows partition ========================
rem ==    a. Create the Windows partition ==========
create partition primary
rem ==    b. Create space for the recovery tools ===
shrink minimum=500
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools
rem                (winre.wim)                    **
rem ==    c. Prepare the Windows partition =========
format quick fs=ntfs label="Windows"
assign letter="W"
rem === 4. Recovery partition ======================
create partition primary
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
list volume
exit

CreatePartitions-UEFI-FFU:

rem == CreatePartitions-UEFI-FFU.txt ==
rem == These commands are used with DiskPart to
rem    create four partitions
rem    for a UEFI/GPT-based PC.
rem    Adjust the partition sizes to fill the drive
rem    as necessary. ==
select disk 0
clean
convert gpt
rem == 1. System partition =========================
create partition efi size=100
rem    ** NOTE: For Advanced Format 4Kn drives,
rem               change this value to size = 260 **
format quick fs=fat32 label="System"
assign letter="S"
rem == 2. Microsoft Reserved (MSR) partition =======
create partition msr size=16
rem == 3. Windows partition ========================
rem ==    a. Create the Windows partition ==========
create partition primary
rem ==    c. Prepare the Windows partition =========
format quick fs=ntfs label="Windows"
assign letter="W"
list volume
exit

CreateRecoveryPartitions-BIOS:

rem == CreateRecoveryPartitions-BIOS.txt ==
select disk 0
select partition 2
assign letter="W"
rem == extend the Windows partition ==
shrink minimum=500
extend
rem ==    b. Create space for the recovery tools 
shrink minimum=500
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools
rem                (winre.wim)                 **
rem ==    c. Prepare the Recovery partition ======
select disk 0
create partition primary
format quick fs=ntfs label="Recovery image"
assign letter="R"
set id=27
list volume
exit

CreateRecoveryPartitions-UEFI:

rem == CreateRecoveryPartitions-UEFI.txt ==
select disk 0
select partition 3
assign letter="W"
rem == extend the Windows partition ==
shrink minimum=500
extend
rem ==    b. Create space for the recovery tools 
shrink minimum=500
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools
rem                (winre.wim)                 **
rem === Create Recovery partition ======================
create partition primary
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
list volume
exit

HideRecoveryPartitions-BIOS:

rem === HideRecoveryPartitions-BIOS.txt ===
select disk 0
select partition 3
set id=27
remove
list volume
exit

HideRecoveryPartitions-UEFI:

rem === HideRecoveryPartitions-UEFI.txt ===
select disk 0
select partition 4
set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes=0x8000000000000001
remove
list volume
exit

Bài viết có tham khảo một số thông tin từ trang chủ Microsoft. Bạn có thể copy các lệnh bên trên tại đây.

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 4
Thẻ: AUTOUNATTEND
3.3k
LƯỢT XEM
Share on FacebookTwitter
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 4

BÀI TIẾP THEO

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

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

Hướng dẫn cách tăng số lượng kết nối Remote Desktop trên Windows
BÀI VIẾT HƯỚNG DẪN

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

19 Tháng 9, 2022
13.6k
Hướng dẫn rebuild bộ cài Windows - Phần 3
BÀI VIẾT HƯỚNG DẪN

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

8 Tháng 5, 2025
11.8k
Hướng dẫn rebuild bộ cài Windows - Phần 2
BÀI VIẾT HƯỚNG DẪN

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

8 Tháng 5, 2025
11.1k
Hướng dẫn rebuild hệ điều hành Windows - Phần 1
BÀI VIẾT HƯỚNG DẪN

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

8 Tháng 5, 2025
16.1k
BÀI VIẾT 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

8 Tháng 5, 2025
2k
BÀI VIẾT 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 3

8 Tháng 5, 2025
1.9k
0 0 Phiếu bầu
Article Rating
Subscribe
Login
Notify of
guest

guest

3 BÌNH LUẬN
Inline Feedbacks
Xem tất cả các bình luận
Dinhdq
Dinhdq
4 months ago

Cảm ơn bạn, rất hay và ý nghĩa
Kiến thức mình có hạn nên làm chẳng được.
Nhờ bạn cho mình xin file trả lời Unattend.xml cho Win11 Enterprise 23H2
Mục đích: của file trả lời chỉ cần mở sẵn tài khoản administrator thôi ạ.

0
Trả lời
Nguyễn Đức Mạnh
Nguyễn Đức Mạnh
Author
Trả lời  Dinhdq
4 months ago

Bạn check mail nhé.

0
Trả lời
Định ĐQ
Định ĐQ
Trả lời  Nguyễn Đức Mạnh
4 months ago

cảm ơn bạn nhiều nhé

0
Trả lời
wpdiscuz   wpDiscuz

BÀI VIẾT MỚI

Bộ cài Windows 11 Enterprise G version 24H2

Bộ cài Windows 11 Enterprise G version 24H2

8 Tháng 5, 2025
42
Bộ cài Windows 11 Enterprise GS version 23H2

Bộ cài Windows 11 Enterprise GS version 23H2

12 Tháng 4, 2025
309

KB5055613 Windows 11 Insider Beta build 26120.3863

12 Tháng 4, 2025
30

KB5055617 Windows 11 Insider Dev build 26200.5551

12 Tháng 4, 2025
28

KB5055625 Windows 11 Insider Dev build 26200.5518

4 Tháng 4, 2025
75

BÀI VIẾT NGẪU NHIÊN

KB5025305 Windows 11 Insider Release Preview Build 22621.1631 (22H2)

21 Tháng 6, 2023
27

Windows 11 Insider Dev Build 23481.1000 (22H2)

15 Tháng 6, 2023
66
TeraByte Drive Image Backup Restore

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

7 Tháng 3, 2025
625

KB5028254 Windows 11 Cumulative Update Preview Build 22621.2070 (22H2)

27 Tháng 7, 2023
100

KB5029359 Windows 11 Insider Beta 22621.2129 and 22631.2129

5 Tháng 8, 2023
37
BÀI TIẾP THEO
Hướng dẫn rebuild hệ điều hành Windows - Phần 1

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

MANHPC

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

Email: contact@manhpc.com

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

© 2025 MANHPC BLOG

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

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
    • TIN TỨC
      • WINDOWS INSIDER
      • WINDOWS UPDATE
  • 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 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 LTSC
    • BỘ CÀI WINDOWS 7
  • GOOGLE NEWS
  • DONATE
  • DỊCH VỤ
  • LIÊN HỆ

© 2021 ManhPC Blog - All Right Reserved.

wpDiscuz
Fanpage
telegram
error: Cảnh báo: Nội dung được bảo vệ !!