Answered change product key server 2003

  • Tuesday, August 07, 2012 11:50 AM
     
      Has Code

    I need to change the product key on server 2003

    I tried this: http://support.microsoft.com/kb/918342

    with no luck :( 

    I tried using this script but it didn't work either

    \
    \WMI Script - ChangeVLKey.vbs
    \
    \ This script changes the product key on the computer
    \
    \***************************************************************************
     
    <!-- Adkit freestyle placement -->[adkit: zone="freestyle" limit="1" list="0"] <br><br><br> [netshelter]ON ERROR RESUME NEXT
     
    if Wscript.arguments.count&lt;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=impersonate}").InstancesOf ("win32_WindowsProductActivation")
     
    result = Obj.SetProductKey (VOL_PROD_KEY)
     
    if err &lt;&gt; 0 then
    WScript.Echo Err.Description, "0x" &amp; Hex(Err.Number)
    Err.Clear
    end if
     
    Next


All Replies