# Page History

## Key

• This line was removed.
• Formatting was changed.

...

2. On Windows 10, remove any unwanted AppX packages installed from the Microsoft Store. Some scripts to do this can be found at this 3rd party link and , this other link, or this other link. This will
1. Save disk space
2. Prevent issues with sysprep failing. If sysprep fails due to a Microsoft Store app, use the following steps to remove the offending apps causing sysprep to fail before trying again.
1. Check %windir%\system\sysprep\panther\setuperr.log for errors like the ones below and note the name of the app.
2. Open a PowerShell console session and run the following command to remove the app in question, where "<MyApp>" is the name of your app referenced in setuperr.log.

Code Block
Get-AppxPackage -name *<MyApp>* | Remove-AppxPackage
3. On Windows 10, do NOT create any additional local user accounts on the reference machine. If you want to add any other accounts add them via your sysprep answer file.
4. Install a custom FileWave client. Follow the instructions here for obtaining a custom FileWave client.
5. Update the OS with the latest Windows patches.
6. Check that the VM is not joined to a domain. If it is joined to a domain, unjoin it from the domain and reboot to make the change effective.
7. Run chkdsk. This speeds up the disk imaging process so that Windows does not run chkdsk after the disk image is restored.

Code Block
chkdsk /f /r
8. Take a VM snapshot of your reference VM.
9. Open a CMD window with admin privileges and sysprep the VM with the sysprep answer file you created earlier. Note that sysprep XML answer files are Windows version specific so an answer file for Windows 10 will not work on Windows 7. The VM will shut down after the system has been sysprepped.

Code Block
linenumbers true
cd \Windows\System32\Sysprep
sysprep.exe /generalize /oobe /shutdown /unattend:c:\fully\qualified\path\to\sysprep_answer_file.xml
10. Take another snapshot of the VM after it has shut down after being sysprepped.

...