我正在尝试创建一个脚本来自动化sysprep进程,但是我遇到了reg add命令的问题。即使根据reg add /?命令,所有内容看起来都是正确的,我仍然得到无效语法。
脚本如下:
reg add HKLM\SYSTEM\Setup\Status\Sysprepstatus /v CleanupState /t REG_DWORD /d 00000002
reg add HKLM\SYSTEM\Setup\Status\Sysprepstatus /v GeneralizationState /t REG_DWORD /d 00000007
reg add HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform /v SkipRearm /t REG_DWORD /d 00000001
msdtc -uninstall
timeout 120
msdtc -install
timeout 120
"C:\Windows\System32\Sysprep.exe" /oobe /generalize /shutdown任何帮助都将不胜感激。提前感谢!
发布于 2014-12-11 06:31:20
reg add命令对我有效,但是cmd是以管理员身份运行的。这可能就是给你带来问题的原因。
https://stackoverflow.com/questions/27302645
复制相似问题