XP serial number replacement tool implemented by vbs

Source: Internet
Author: User
Tags microsoft website

CopyCode The Code is as follows: on error resume next

Dim vol_prod_key
If wscript. Arguments. Count <1 then
Vol_prod_key = inputbox ("BenProgramIt helps you change the serial number of Windows XP. "& Vbcr &" serial number is searched and entered by you. The serial numbers listed below are not necessarily your current serial numbers. They are for format reference only. "& Vbcr &" Enter the new serial number: "," WindowsXP serial number changer by Donghai "," MRX3F-47B9T-2487J-KWKMF-RPWBY ")
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 "modified successfully. Click the included website to go to the Microsoft website for verification. Good luck! "
End if

If err <> 0 then
Failed to replace wscript. Echo! The serial number you entered is incorrect. "
Err. Clear
End if

Next

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.