Dim VOL_PROD_KEY if Wscript.arguments.count1 then VOL_PROD_KEY =InputBox("使用說明:"vbCrvbCr" 本程序將自動替換你當前 Windows 的序列號,通過微軟驗證完全正版。"vbCrvbCr"序列號(OEM版無效,默認版本為 XP VLK):" vbCrvbCr"輸入序列號(默認為 XP VLK):","Windows XP/2003 序列號更換工具","DG8FV- B9TKY-FRT9J-6CRCC-XPQ4G") 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,"-","") '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 "您的 Windows CD-KEY 修改成功。請檢查系統屬性。" end if
if err > 0 then Wscript.echo "修改失敗!請檢查輸入的 CD-KEY 是否與當前 Windows 版本相匹配。" Err.Clear end if