How to automate Windows installation?


rafaelsouzams

Member
Local time
2:09 PM
Posts
7
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 23H2 22631.3447
    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 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    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 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
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 7 HP 64 - Windows 11 Pro - 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 7 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
    350 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
    Laptop
    Manufacturer/Model
    Dell G15 5525
    CPU
    Ryzen 7 6800H
    Memory
    32 GB DDR5 4800mhz
    Graphics Card(s)
    RTX 3050 4GB Vram
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB Solidigm™ P41 Plus nvme
    Internet Speed
    800mbps down, 20 up
  • Operating System
    Windows 11
    Computer type
    Tablet
    Manufacturer/Model
    Lenovo ideapad flex 14API 2 in 1
    CPU
    Ryzen 5 3500u
    Motherboard
    LENOVO LNVNB161216 (FP5)
    Memory
    12GB DDR4
    Graphics card(s)
    AMD Radeon Vega 8 Graphics
    Hard Drives
    256 GB Samsung ssd nvme

Latest Support Threads

Back
Top Bottom