用VBS腳本實(shí)現(xiàn)更換Windows Xp序列號(hào)的代碼
更新時(shí)間:2008年05月20日 22:45:24 作者:
用vbs實(shí)現(xiàn)更改winxp序列號(hào),不用任何軟件
ON ERROR RESUME NEXT
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY =InputBox("使用說(shuō)明:"&vbCr&vbCr&" 本程序?qū)⒆詣?dòng)替換你當(dāng)前 Windows 的序列號(hào),通過(guò)微軟驗(yàn)證完全正版。"&vbCr&vbCr&"序列號(hào)(OEM版無(wú)效,默認(rèn)版本為 XP VLK):"& vbCr&vbCr&"輸入序列號(hào)(默認(rèn)為 XP VLK):","Windows XP/2003 序列號(hào)更換工具","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 修改成功。請(qǐng)檢查系統(tǒng)屬性。"
end if
if err <> 0 then
Wscript.echo "修改失??!請(qǐng)檢查輸入的 CD-KEY 是否與當(dāng)前 Windows 版本相匹配。"
Err.Clear
end if
Next
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY =InputBox("使用說(shuō)明:"&vbCr&vbCr&" 本程序?qū)⒆詣?dòng)替換你當(dāng)前 Windows 的序列號(hào),通過(guò)微軟驗(yàn)證完全正版。"&vbCr&vbCr&"序列號(hào)(OEM版無(wú)效,默認(rèn)版本為 XP VLK):"& vbCr&vbCr&"輸入序列號(hào)(默認(rèn)為 XP VLK):","Windows XP/2003 序列號(hào)更換工具","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 修改成功。請(qǐng)檢查系統(tǒng)屬性。"
end if
if err <> 0 then
Wscript.echo "修改失??!請(qǐng)檢查輸入的 CD-KEY 是否與當(dāng)前 Windows 版本相匹配。"
Err.Clear
end if
Next
相關(guān)文章
VBS+MSWinsock打造靈巧UDP后門(mén)的相關(guān)資料
VBS+MSWinsock打造靈巧UDP后門(mén)的相關(guān)資料...2007-02-02
vbscript的骨灰級(jí)寫(xiě)法計(jì)算1到100的和
vbscript的骨灰級(jí)寫(xiě)法計(jì)算1到100的和的代碼,實(shí)現(xiàn)的比較不錯(cuò)2012-05-05
域內(nèi)計(jì)算機(jī)和用戶獲取實(shí)現(xiàn)vbs代碼
域內(nèi)計(jì)算機(jī)和用戶獲?。ㄞD(zhuǎn)自冰點(diǎn)極限-赤龍),學(xué)習(xí)vbs的朋友可以參考下。2010-11-11
用vbs將名稱(chēng)截?cái)嘁允蛊渥疃喟?16 個(gè)字符的代碼
用vbs將名稱(chēng)截?cái)嘁允蛊渥疃喟?16 個(gè)字符的代碼...2007-03-03

