FolderRisk: Caution
Panther C:\Windows\System32\Sysprep\Panther
Sysprep logs (setupact.log, setuperr.log): the first place to look when generalizing a Windows image fails.
What it’s for
Sysprep writes its logs here. When generalization fails, the cause is in these files, in particular the app or package that blocks the operation.
What it contains
setupact.log: the action log, chronological and detailed.setuperr.log: errors only, quicker to read.- Sysprep’s own lines are prefixed
SYSPRP, which lets you isolate them from the rest of the setup engine.
Risks and best practices
- Archive or delete these logs, but keep them until the incident is resolved. They name machines, accounts and packages: protect them before sharing.
- Do not confuse them with
C:\Windows\Panther, which logs Windows setup and upgrades. For Sysprep, open this one. - A generalization that fails because of a Store app shows in
setupact.log: the message says a package is installed for a user but not provisioned for all users. Remove it for that user withRemove-AppxPackage, then run Sysprep again.
Useful commands
# List the Sysprep logsGet-ChildItem -Force "$env:windir\System32\Sysprep\Panther" | Select-Object Name, Length, LastWriteTime
# Errors from the latest runGet-Content "$env:windir\System32\Sysprep\Panther\setuperr.log" -Tail 40
# Sysprep lines in the action logSelect-String -Path "$env:windir\System32\Sysprep\Panther\setupact.log" -Pattern "SYSPRP" | Select-Object -Last 30