Skip to the content.

Logo generated using Midjourney Image Generator

:arrows_clockwise: module_system_SysPrep

:page_with_curl: Description

Please refer to Microsoft documentation on sysprep.

Version 3 is a complete rewrite of the program. It’s now a menu driven interactive program, so you can choose what you want to do. Automated processing of SysPrep for Windows 10 & 11; should work for Windows server that have only run basic Windows setup. Log files will be stored where the program was executed from.

Download

:arrow_down: Download

Download the project as .zip file from releases

:white_check_mark: Process List

Main menu

:one: Configure the local administrator

:two: Cleanup local user

:three: Cleanup Scheduled tasks

:four: Windows APPX packages

:five: Windows Update

:six: Disk Check, for dirty bit

:seven: CleanMgr, run disk cleanup

:eight: Bitlocker check

:nine: Reboot

:zero: SysPrep

Sysprep process overview

When Sysprep runs, it goes through the following process:

  1. Sysprep verification. Verifies that Sysprep can run. Only an administrator can run Sysprep. Only one instance of Sysprep can run at a time. Also, Sysprep must run on the version of Windows that you used to install Sysprep.
  2. Logging initialization. Initializes logging. For more information, see Sysprep Log Files.
  3. Parsing command-line arguments. Parses command-line arguments. If a user does not provide command-line arguments, a System Preparation Tool window appears and enables users to specify Sysprep actions.
  4. Processing Sysprep actions. Processes Sysprep actions, calls appropriate .dll files and executable files, and adds actions to the log file.
  5. Verifying Sysprep processing actions. Verifies that all .dll files have processed all their tasks, and then either shuts down or restarts the system.

:green_book: Instructions

Use a USB flash drive to run the program from, especially if you don’t want to leave anything on the system when imaging. Can run from local storage if need be. Best practice is to use external storage such as a USB Flash drive. All the logs and cache will be saved to USB so they can be referenced in the future. Each sysprep run on a computer will be saved to its own directory.

:incoming_envelope: Passing Config file as Paramter

Example:

Most basic would do the following:

:orange_book: Dependencies

:notebook: Notes (recent to old)

Mention me @DavidGeeraerts