' ' WMI Script - ChangeVLKey.vbs ' ' This script changes the product key on the computer (XP SP1 SP2 2003) ' ' Made by ythggyth. '*************************************************************************** ON ERROR RESUME NEXT Dim VOL_PROD_KEY if Wscript.arguments.count<1 then VOL_PROD_KEY=InputBox("使用說明(OEM版無效)"&vbCr&vbCr&"請選擇一個微軟授權正版 Windows 的序列號,複製並粘貼到下面空格中"&vbCr&vbCr&"輸入序列號(默認為 XP VLK)","Windows XP/2003 序列號更換工具","HM2CY-7CWCQ-36H3T-42M2W-CBFY6") 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 "修正失敗,可能序號無效,請重新輸入" Err.Clear end if Next