Windows

停用 Win XP SP3

  • June 29, 2012

我正在嘗試停用 Windows XP SP3 安裝以測試配置腳本。

我嘗試修改HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Current Version\WPAEvents\OOBETimer系統資料庫項,但是在更改值後,系統仍然顯示為在 command:%systemroot%\system32\oobe\msoobe.exe /a執行時被啟動。此外,當我重新啟動機器時,OOBETimer 鍵恢復為以前的值。

任何意見,將不勝感激。

您應該能夠通過使用ChangeVLKeySP1.vbs刪除並重新添加產品密鑰並重新啟動系統來觸發它。

cscript changevlkeysp1.vbs <your-prod-uct-key>
shutdown /r /f /t 0

KB328846列出 ChangeVLKeySP1.vbs :

' 
' 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

引用自:https://serverfault.com/questions/403459