Skip to content

tinohager/Windows10-Autounattend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows10 Autounattend

This project is optimized for installation via an USB stick. All available Windows updates and Manufacturer specific drivers for Lenovo are installed automatically. Also various software packages can be installed automatically via chocolatey. They default account after the installation is DeviceAdmin with the password password*

Create an USB Boot Device

To create a bootable USB stick I recommend one of the following tools. Ventoy has the advantage that several ISOs are available at the same time on a USB stick.

Ventoy

You should have this files in your program directory.

.
├── ventoy                                     # Base folder for ventoy configuration
├── ventoy/ventoy.json                         # Vento Configuration
├── ventoy/script/windows_autounattend1.xml    # Windows Auto Unattend Configuration
├── ISO                                        # Base folder for all ISO files
├── ISO/Windows.iso                            # The Windows ISO

Process Flow

  1. Check if an Internet connection is available
  2. Download the firststart.ps1 script
  3. Execute the firststart.ps1 script
    1. Install Windows Updates
    2. Install Hardware Manufacturer Updates
    3. Install Chocolatey Software Packages
  4. Check is a customize.ps1 script available and execute it

Error Handling

If the error dialog is displayed after the installation and the computer hangs in a loop after confirming, this can be fixed with this trick.

  1. When message appears, press SHIFT + F10 to open CMD
  2. Type: regedit.exe
  3. Browse to HKLM/SYSTEM/SETUP/STATUS/ChildCompletion in setup.exe, change the value from 1 to 3.
  4. Close the regedit window and confirm the error message dialog
  5. Windows will now reboot to the OS but will bypass your answer file.

Windows-International-Core

Setting Description
SystemLocale Specifies the language for non-Unicode programs
InputLocale Specifies the system input locale and the keyboard layout
UILanguage Specifies the system default user interface (UI) language
UserLocale Specifies the per-user settings used for formatting dates, times, currency, and numbers

Configuration Passes

Step Pass Description
1 windowsPE The Windows image is copied to the destination computer
2 offlineServicing After copy the image and before the computer reboots (not used in my project)
3 specialize Set language configuration, set hostname
4 oobeSystem Before Windows Welcome starts (Create User, Start Powershell Setup Script)