'For WinXP SP1 SP2 ,Windows Server 2003 '***************************************************************************
ON ERROR RESUME NEXT
Dim VOL_PROD_KEY if Wscript.arguments.count1 then VOL_PROD_KEY=InputBox("使用說明(OEM版無效):"vbCrvbCr" 本腳本程序將修改當前 Windows 的序列號。請先使用算號器算出匹配當前 Windows 的序列號,復制并粘貼到下面空格中。"vbCrvbCr"輸入序列號(默認為 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