Skip to content
Sysprep

Sysprep

==Sysprep==

Microsoft guide: MS Learn

To use sysprep open CMD and go to the location of the sysprep EXE:

%WINDIR%\system32\sysprep\sysprep.exe

Then you can uses the /generalize command and select the options from the options box that appears or use the following command to ready the VM to be shutdown before cloning the VM:

1
%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe

Issues with sysprep

If sysprep does not function then you may need to check errors in the log files: c:\windows\system32\sysprep\panther\setupact or setuperr

Usually the issues are because some applications are installed per user. to identify this check the logs then use powershell to find the installs:

1
2
3
Get-AppxPackage -AllUsers #get the appx package and look for the package that is shown in the sysprep logs

Get-AppxPackage -AllUsers -Name  | Remove-AppxPackage -AllUsers #remove the package for all users