How to automate Windows installation?


rafaelsouzams

Member
Local time
6:42 AM
Posts
14
OS
Windows 11
Hey guys,
I would like to know if it is possible to automate the installation of Windows 11! I would like to configure all the steps after booting via USB, until arriving at the desktop, allowing me to choose only the partitions that will be used, so as not to run the risk of formatting the wrong SSD.

I know that software like Nlite is capable of doing this, but as far as I know, if a new ISO comes out (24H2 for example) I would need to redo the entire procedure.
I would like to create some script or file that I could play inside any newly created pendrive, and with that, automate the entire process with the settings I like.

It is possible?
 
Windows Build/Version
Windows 11 23h2

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Core i9 10900
    Motherboard
    Asus Z490-H Gaming
    Memory
    64gb
    Graphics Card(s)
    RTX 4070TI
    Hard Drives
    Samsung Evo 970 1Tb
By the way, if it were possible to configure everything through nlite, and then easily migrate these settings to other ISOs when necessary, that would be very interesting too!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    Core i9 10900
    Motherboard
    Asus Z490-H Gaming
    Memory
    64gb
    Graphics Card(s)
    RTX 4070TI
    Hard Drives
    Samsung Evo 970 1Tb
Unattended files can partially automate as many install steps, or as little as you want. If you skip the disk layout, WinPE Setup will force you to manually guide it through those steps.

The unattended file hasn't really changed since W10 was released, and the same file can be used for all W10 & 11 editions. 24H2 will be able to reuse the same file. The only difference might be a recommendation for a larger Recovery partition.
 

My Computer

System One

  • OS
    Windows 7
so as not to run the risk of formatting the wrong SSD
That's not all you need to worry about. You should always disconnect (or disable if your UEFI bios allows it) all other drives except the system drive during a clean install to avoid the EFI partition getting written to the wrong drive. This can and does happen frequently in spite of which drive you choose to install windows on.
Here's the latest of a number of thread on the forum about it. Windows EFI Partition mixing up boot?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
This tutorial shows how to do an unattended install of windows.


Re. tools like ninite, they can be hit or miss depending on how up to date they are.
 

My Computer

System One

  • OS
    Windows 11 Pro + Win11 Canary VM.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14
    CPU
    I9 13th gen i9-13900H 2.60 GHZ
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB soldered
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    laptop OLED screen
    Screen Resolution
    2880x1800 touchscreen
    Hard Drives
    1 TB NVME SSD (only weakness is only one slot)
    PSU
    Internal + 65W thunderbolt USB4 charger
    Case
    Yep, got one
    Cooling
    Stella Artois (UK pint cans - 568 ml) - extra cost.
    Keyboard
    Built in UK keybd
    Mouse
    Bluetooth , wireless dongled, wired
    Internet Speed
    900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

    Macrium Reflect Home V8
    Office 365 Family (6 users each 1TB onedrive space)
    Hyper-V (a vm runs almost as fast as my older laptop)
Win 11 is updating itself every year so an unattended installation will become useless once a year.
If you intend to use it to install Win 11 in many computers there is a better way (make a drive image of a sysprep drive)
If it is custom installation for one person, again a drive image backup will be a better and faster solution.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro - Windows 7 HP 64 - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
Win 11 is updating itself every year so an unattended installation will become useless once a year.
If you intend to use it to install Win 11 in many computers there is a better way (make a drive image of a sysprep drive)
If it is custom installation for one person, again a drive image backup will be a better and faster solution.
Not necessarily, mine checks for updates during install and has downloaded a later feature update. If it doesnt have internet during the install then yes it will need to be updated.

This tutorial shows how to do an unattended install of windows.


Re. tools like ninite, they can be hit or miss depending on how up to date they are.
This is a great tutorial. Ninite is usually good I find but winget is even better
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc
Back
Top Bottom