I have cloned and deployed several PCs with similar hardware as they are of the same model.
The steps are as follows:
Computer A:
- Install Windows
- Install applications/drivers/updates
- Capture Image Version #1
- Run sysprep
- Join domain
- Activate windows and office
Computer B, C and so on:
- Deploy Image Version #1 to a machine
- Run sysprep
- Join domain
- Activate windows and office
Run the following bat file when sysprep
@ECHO OFF
reg add "HKLM\SYSTEM\Setup\Status\Sysprepstatus" /v CleanupState /t REG_DWORD /d 00000002 /F
reg add "HKLM\SYSTEM\Setup\Status\Sysprepstatus" /v GeneralizationState /t REG_DWORD /d 00000007 /F
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v SkipRearm /t REG_DWORD /d 00000001
msdtc -uninstall
timeout 120
msdtc -install
timeout 120
rmdir /Q /S "C:\Windows\System32\Sysprep\Panther"
del /Q "C:\Windows\System32\Sysprep\Sysprep_succeeded.tag "
ECHO Beginning Sysprep. The system will shutdown when complete.
"C:\Windows\System32\Sysprep\Sysprep.exe" /oobe /generalize /shutdown
I have now realised that windows and office fails to activate on the kms server by itself. Any idea on how I can remedy the problem. Thanks.
What is the difference if I sysprep /generalize with SkipRearm=1 and sysprep /generalize with SkipRearm=0?