Announcement

Collapse
No announcement yet.

Change S/N Script Please help

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change S/N Script Please help

    hi can any one tell me excatly what i need to put in a script to change the windows sirail number so i can run it at start up


    Matthew lynch


    P.s.
    this is not iligal i found the script on the microsoft website but i car't manage to get it to work
    Last edited by matty_lynch; 30th September 2005, 16:41.

  • #2
    Re: Change S/N Script Please help

    What script?
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      Re: Change S/N Script Please help

      the script below i need to beable to run it on start up on all the pcs in my workplace

      '
      ' WMI Script - ChangeVLKey.vbs
      '
      ' This script changes the product key on the computer
      '
      '************************************************* **************************

      ON ERROR RESUME NEXT


      if Wscript.arguments.count<1 then
      Wscript.echo "Script can't run without VolumeProductKey argument"
      Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
      Wscript.quit
      end if

      Dim VOL_PROD_KEY
      VOL_PROD_KEY = Wscript.arguments.Item(0)
      VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any

      for each Obj in GetObject("winmgmts:{impersonationLevel=impersonat e}").InstancesOf ("win32_WindowsProductActivation")

      result = Obj.SetProductKey (VOL_PROD_KEY)

      if err <> 0 then
      WScript.Echo Err.Description, "0x" & Hex(Err.Number)
      Err.Clear
      end if

      Next

      Comment


      • #4
        Re: Change S/N Script Please help

        Create new text document, copy and paste the vbscript into it and save it and call it chgkey.vbs or something.

        Usage is as follows:

        chgkey.vbs 12345-12345-12345-12345-12345

        You can call it from a batch file at logon.
        Last edited by ahinson; 30th September 2005, 20:13.
        Andrew

        ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

        Comment


        • #5
          Re: Change S/N Script Please help

          see also:
          http://www.petri.com/change_the_seri...windows_xp.htm
          http://support.microsoft.com/default...;en-us;Q328874
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment

          Working...
          X