Scripting
Sys Prep Setup
How to nuke the HAL database to move a drive using SysPrep.
- Create a folder c:\sysprep
- Extract the sysprep cab file to it.
- Run SetupMgr.exe and follow the instructions to create your sysprep.ini file.
- Rename this file sysprep.bak
- Create a blank sysprep.inf file in the same directory as sysprep.exe.
- Open the sysprep.inf file and add the following text to the first line of the file: [SysprepMassStorage]
- Save and close sysprep.inf
- Run sysprep -bmsd. This will dump all of the plug and play IDs from the driver.cab file into the sysprep.inf file.
- Copy the contents of the sysprep.bak file above the [SysprepMassStorage] section in sysprep.ini.
- Run sysprep -clean then
- Run sysprep -reseal -mini -pnp -noreboot
- Move the drive to the new machine
- Boot up and finish the setup wizard!