![停用 Win XP SP3](https://linux22.com/image/588618/%E5%81%9C%E7%94%A8%20Win%20XP%20SP3.png)
我正在尝试停用 Windows XP SP3 安装以便测试配置脚本。
我尝试修改HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Current Version\WPAEvents\OOBETimer
注册表项,但在更改值后,%systemroot%\system32\oobe\msoobe.exe /a
运行命令时系统仍显示已激活。此外,当我重新启动机器时,OOBETimer 项会恢复为以前的值。
任何意见,将不胜感激。
答案1
您应该能够通过以下方式触发该操作:删除并重新添加产品密钥更改VLKeySP1并重新启动系统。
cscript changevlkeysp1.vbs <your-prod-uct-key>
shutdown /r /f /t 0
列出 ChangeVLKeySP1.vbsKB328846:
'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer
'
'***************************************************************************
ON ERROR RESUME NEXT
if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if
Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if
Next