Windows sysprep reference

Last updated:

WINDOWS

Located: %WINDIR%\system32\sysprep\sysprep.exe

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

Sysprep will remove language location settings, etc.
So let the server boot up, select region. Then shutdown and convert it to template.\

After bootup:

  1. Select region
  2. Remove IP
  3. Remove any groups from local groups
  4. Also cleanup all logs
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }

references: Sysprep (Generalize) a Windows installation | Microsoft Learn Boot Windows to Audit Mode or OOBE | Microsoft Learn