# sysprep.exe
Sysprep is for preppin'....systems I guess.  

## sysprep a system for imaging on dissimilar hardware
```
c:\windows\system32\sysprep\sysprep.exe
```

Tick the `Generalize` and whatever shutdown/reboot option you want.

## Troubleshooting dumb sysprep errors
Your sysprep might bomb out and tell you to review `C:\windows\system32\sysprep\panther\setuperr.log`.  Inside that file, look and see if you have some error similar to:

```
SYSPRP Package Microsoft.BingSearch_1.0.blah.blah...
```

Take note of the EXACT package name.

```
Remove-AppxPackage -Package FULL-PACKAGE-name
```

Then try sysprep again.  

*Source: [https://learn.microsoft.com/en-us/troubleshoot/windows-client/setup-upgrade-and-drivers/sysprep-fails-remove-or-update-store-apps](https://learn.microsoft.com/en-us/troubleshoot/windows-client/setup-upgrade-and-drivers/sysprep-fails-remove-or-update-store-apps).*
