Thứ Tư, 11 Tháng mười một , 2026
NEWS
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
  • 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 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
  • 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Ủ 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
    1. Windows 7
    2. Windows 10 và Windows 11
  2. Một số component tham khảo
    1. Thêm driver vào bộ cài (không tích hợp vào file install)
    2. OEMInformation
    3. Enable tài khoản Administrator built-in
    4. Tự động đăng nhập vào tài khoản Administrator
    5. SYSTEM VARIABLES
    6. Một số lệnh tạo Partitions

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



    
        
            
                en-US
            
            1033:00000409
            en-US
            en-US
            en-US
        
        
            
                en-US
            
            1033:00000409
            en-US
            en-US
            en-US
        
        
            
                true
            
            true
        
        
            
                true
            
            true
        
    

unattend.xml



    
        
            1
        
    
    
        
            1
        
    
    
        
            true
        
        
            true
        
        
            true
            SE Asia Standard Time
        
        
            true
            SE Asia Standard Time
        
        
            1
        
        
            1
        
        
            
                
                    Add Computer Desktop Icon 1
                    1
                    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
                
                
                    Add Computer Desktop Icon 2
                    2
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
                
                
                    Support URL
                    3
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d MANHPC /f
                
                
                    Support URL
                    4
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f
                
                
                    Support URL
                    5
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d "8h00 - 22h00" /f
                 
                
                    Support URL
                    6
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f
                 
            
        
        
        
                
                    Add Computer Desktop Icon 1
                    1
                    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
                
                
                    Add Computer Desktop Icon 2
                    2
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
                
                
                    Support URL
                    3
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d MANHPC /f
                
                
                    Support URL
                    4
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f
                
                
                    Support URL
                    5
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d "8h00 - 22h00" /f
                 
                
                    Support URL
                    6
                    cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f
                 
            
        
        
    
    
        
            1033:00000409
            en-US
            en-US
        
        
            1033:00000409
            en-US
            en-US
        
        
            
                true
                Work
                3
                true
            
            false
            
                
                    Control Panel View
                    1
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f
                    true
                
                
                    2
                    Control Panel Icon Size
                    false
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f
                
            
            
                C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk
                C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk
                
            
            S.E. Asia Standard Time
        
        
            
                true
                Work
                3
                true
            
            false
            
                
                    Control Panel View
                    1
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f
                    true
                
                
                    2
                    Control Panel Icon Size
                    false
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f
                
            
            
                C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk
                C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk
                
            
            S.E. Asia Standard Time
        
    

Windows 10 và Windows 11

autounattend.xml



    
        
            1033:00000409
            en-US
            en-US
            en-US
        
        
            1033:00000409
            en-US
            en-US
            en-US
        
                
            
                true
            
        
        
            
                true
            
        
    

autounattend.xml (bypass check hardware Windows 11)



    
        
            1033:00000409
            en-US
            en-US
            en-US
        
        
            
                true
            
            
                
                    1
                    reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /d 1 /t reg_dword /f
                
                
                    2
                    reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /d 1 /t reg_dword /f
                
                
                    3
                    reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /d 1 /t reg_dword /f
                    
                
                    4
                    reg add HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /d 1 /t reg_dword /f
                
                
                    5
                    reg add HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /d 1 /t reg_dword /f
                
            
        
    

unattend.xml



    
                       
            1
        
                       
            1
        
                       
            1
        
                       
            1
        
    
    
        
            
                
                    Allow Insecure Guest Auth
                    1
                    cmd /c  reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f
                
                
                    Disable Reserves
                    2
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f
                
                
                    Disable Acrylic Background On Logon
                    3
                    cmd /c  reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /v DisableAcrylicBackgroundOnLogon /t REG_DWORD /d 1 /f
                
                
                    Copy To folder
                    4
                    cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13} /f
                
                
                    Move To folder
                    5
                    cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13} /f
                
                
                    Add This PC Desktop Icon 1
                    6
                    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
                
                
                    Add This PC Desktop Icon 2
                    7
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
                
                
                    Support URL
                    8
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d AKIO /f
                
                
                    Support URL
                    9
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f
                
                
                    Support URL
                    10
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d 24/7 /f
                 
                
                    Support URL
                    11
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f
                             
            
        
        
            
                
                    Allow Insecure Guest Auth
                    1
                    cmd /c  reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f
                
                 
                    Disable Reserves
                    2
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f
                
                
                    Disable Acrylic Background On Logon
                    3
                    cmd /c  reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /v DisableAcrylicBackgroundOnLogon /t REG_DWORD /d 1 /f
                
                
                    Copy To folder
                    4
                    cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13} /f
                
                
                    Move To folder
                    5
                    cmd /c  reg add HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13} /f
                
                
                    Add This PC Desktop Icon 1
                    6
                    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
                
                
                    Add This PC Desktop Icon 2
                    7
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
                
                
                    Support URL
                    8
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v Manufacturer /t REG_SZ /d AKIO /f
                
                
                    Support URL
                    9
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportURL /t REG_SZ /d https://manhpc.com /f
                
                
                    Support URL
                    10
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportHours /t REG_SZ /d 24/7 /f
                 
                
                    Support URL
                    11
                    cmd /c  reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /v SupportPhone /t REG_SZ /d "+84 91 664 8537" /f
                             
            
        
        
            true
        
        
            true
        
    
    
        
            1033:00000409
            en-US
            en-US
            en-US
            en-US
        
        
            1033:00000409
            en-US
            en-US
            en-US
            en-US
        
        
            
                
                    1
                    Open File Explorer to This PC
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f
                
                
                    2
                    Control Panel 1
                    reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f
                
                
                    3
                    Control Panel 2
                    reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f
                
            
            
                true
                1
            
            
                %programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk
                %programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk
                %programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk
                    
            
            MANHPC
            SE Asia Standard Time
        
        
            
                
                    1
                    Open File Explorer to This PC
                    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f
                
                
                    2
                    Control Panel 1
                    reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f
                
                
                    3
                    Control Panel 2
                    reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f
                
            
            
                true
                1
            
            
                %programdata%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk
                %programdata%\Microsoft\Windows\Start Menu\Programs\Word.lnk
                %programdata%\Microsoft\Windows\Start Menu\Programs\Excel.lnk
                    
            
            SE Asia Standard Time
        
    
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

    
        
            $WinPEDriver$
        
    


    
        
            $WinPEDriver$
        
    

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


        
            
                %windir%\Windows\System32\oemlogo.bmp
                AKIO
                08:30 - 16:30
                +84 91 664 8537
                
Trang chủ
%windir%\Windows\System32\oemlogo.bmp AKIO 08:30 - 16:30 +84 91 664 8537
Trang chủ

hoặc:


        
            
                %windir%\Windows\System32\oemlogo.bmp
                AKIO
                08:30 - 16:30
                +84 91 664 8537
                
Trang chủ
%windir%\Windows\System32\oemlogo.bmp AKIO 08:30 - 16:30 +84 91 664 8537
Trang chủ

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.


     
         
             %windir%\system32\OEM\manhpc.bmp
             MANHPC Theme
         
     
     
         
             %windir%\system32\OEM\manhpc.bmp
             MANHPC Theme
         
      

Enable tài khoản Administrator built-in



    
        
            EnableAdmin
            1
            cmd /c net user Administrator /active:yes
        
    


    
        
            EnableAdmin
            1
            cmd /c net user Administrator /active:yes
        
    

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”.


            
                true
                3
                true
                true
                true
                true
                true
            


            
                true
                3
                true
                true
                true
                true
                true
            

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
Cloudflare

Verify you are human

loading

Checking your browser before accessing this site.
Click to verify →
Then you will be redirected to the requested content.
Ray ID: 8f3a2c1b9d4e5f6a · Performance & security by Cloudflare

site-verification-ok

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 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 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 mười một, 2026
380
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

8 Tháng mười một, 2026
15.2k
HƯỚNG DẪN

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

8 Tháng mười một, 2026
14.4k
HƯỚNG DẪN

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

8 Tháng mười một, 2026
13k
HƯỚNG DẪN

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

8 Tháng mười một, 2026
19.6k
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 mười một, 2026
2.3k
0 0 Phiếu bầu
Article Rating
Theo dõi
Đăng nhập
Notify of
guest

guest

3 BÌNH LUẬN
Dinhdq
Dinhdq
1 year 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
1 year ago

Bạn check mail nhé.

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

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

0
Trả lời
wpdiscuz   wpDiscuz

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

Bộ cài Windows 10 Pro 22H2

Bộ cài Windows 10 Pro 22H2 x64

8 Tháng mười một, 2026
72.8k
Bộ cài Windows 10 Enterprise LTSC 2021

Bộ cài Windows 10 Enterprise LTSC 2021

8 Tháng mười một, 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

8 Tháng mười một, 2026
28.6k
Bộ cài Windows 11 All In One

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

8 Tháng mười một, 2026
25.1k
Bộ cài Windows 10 All In One

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

8 Tháng mười một, 2026
19.7k
Bộ cài Windows 7 Ultimate All In One

Bộ cài Windows 7 Ultimate

8 Tháng mười một, 2026
17.4k
Bộ cài Windows 10 Enterprise LTSC 2019

Bộ cài Windows 10 Enterprise LTSC 2019

8 Tháng mười một, 2026
16.7k
Bộ cài Windows 11 Pro version 22H2

Bộ cài Windows 11 Pro 22H2

8 Tháng mười một, 2026
16.5k
Bộ cài Windows 7 SP1 All In One

Bộ cài Windows 7 SP1 All In One

8 Tháng mười một, 2026
16.2k
Bộ cài Windows 10 Pro 21H2 x64

Bộ cài Windows 10 Pro 21H2 x64

8 Tháng mười một, 2026
13.9k

BỘ CÀI WINDOWS MỚI

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

8 Tháng mười một, 2026
154
Bộ cài Windows 11 IoT Enterprise LTSC 26H1

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

8 Tháng mười một, 2026
2.1k
Bộ cài Windows 11 Enterprise G 26H1

Bộ cài Windows 11 Enterprise G 26H1

8 Tháng mười một, 2026
635
Bộ cài Windows 11 Pro 26H1

Bộ cài Windows 11 Pro 26H1

8 Tháng mười một, 2026
2.3k
Bộ Cài Windows 11 Pro Workstation 26H1

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

8 Tháng mười một, 2026
669
Bộ cài Windows 11 Enterprise 26H1

Bộ cài Windows 11 Enterprise 26H1

8 Tháng mười một, 2026
462
Bộ cài Windows 11 Pro 25H2

Bộ cài Windows 11 Pro 25H2

8 Tháng mười một, 2026
4.1k
Bộ Cài Windows 11 Pro Workstation 25H2

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

8 Tháng mười một, 2026
1.1k
Bộ Cài Windows 11 Enterprise 25H2

Bộ cài Windows 11 Enterprise 25H2

8 Tháng mười một, 2026
1.1k

Bộ cài Windows 11 Enterprise GS 25H2

8 Tháng mười một, 2026
913

BÀI TIẾP THEO

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: [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

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
  • DỊCH VỤ
  • LIÊN HỆ

© 2021 ManhPC Blog - All Right Reserved.

Liên hệ
Fanpage
wpDiscuz