強力鎯頭 VB BLOG

文章分類

每月文章

文章標籤

全部標籤

置換 Windows XP 序號

如何置換 Windows XP 序號

On Error Resume Next

Const strWMIcls = "win32_WindowsProductActivation" ' WMI Class

Const strSNO = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" ' 正版合法序號

GetObject("winmgmts:").InstancesOf(strWMIcls)(strWMIcls & ".ServerName=""" & _

Environ("ComputerName") & """").SetProductKey Replace(strSNO, "-", "")

If Err = 0 Then MsgBox "Windows 序號置換完成 !"

( 透過 WMI , OEM 版本無效 ! )

posted on 2008/3/24 21:30 | 我要推薦 | 閱讀數 : 11886 | 文章分類 [ VB / VBA ] 訂閱

Feedback

# re: 置換 Windows XP 序號 2009/5/11 下午 02:19 chi 回覆

如標題
懇請幫忙
我被說未通過檢驗
謝謝

# re: 置換 Windows XP 序號 2009/7/30 下午 05:17 林岐龍 回覆

驗證未過-無法正常使用-請幫幫我!

標題
姓名
電子郵件 (將不會被顯示)
個人網頁
內容
登入後使用進階評論
Please add 8 and 1 and type the answer here: