將以下代碼複製到文字檔,另存新檔vbs檔案執行就可以了:
複製代碼 代碼如下:
'For WinXP SP1 SP2 ,Windows Server 2003
'***************************************************************************
ON ERROR RESUME NEXT
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY=InputBox("使用說明(OEM版無效):"&vbCr&vbCr&" 本指令碼程式將修改當前 Windows 的序號。請先使用算號器算出匹配當前 Windows 的序號,複製並粘貼到下面空格中。"&vbCr&vbCr&"輸入序號(預設為 XP VLK):","Windows XP/2003 序號更換工具","PJVCV-XCPPF-6GTKK-QXRPY-FBKGJ")
if VOL_PROD_KEY="" then
Wscript.quit
end if
else
VOL_PROD_KEY = Wscript.arguments.Item(0)
end if
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","")
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err = 0 then
Wscript.echo "您的 Windows CD-KEY 修改成功。請檢查系統屬性。"
end if
if err <> 0 then
Wscript.echo "修改失敗!請檢查輸入的 CD-KEY 是否與當前 Windows 版本相匹配。"
Err.Clear
end if
Next