Jump to content

Changing XP License on every machine in the school......


Recommended Posts

Posted

Hi,

 

The VLK for the county has got out into the wild and now Microsoft says every one of our PC's has the wrong License Key. Is there a way to change this across the site in one swoop?

 

We could use Jelly Bean but this requires logging onto each machine. Does anyone have any other solution?

 

Thanks a lot

 

:)

Posted
unattended install. stick it in the answer file then sysprep and capture the image and just reimage all the machines.

 

But the brief is to avoid visiting every machine.

  • Thanks 1
Posted

Use a script to copy the answer file to all machines. Then remotely execute the sysprep command. No re-imaging or visiting required.

 

Edit: Better answer posted above while I was typing mine.

Posted
Thanks to everyone, i am going to have a read through all the links and go from there, looks very good though!!!
Posted

' 
' 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=impersonate}").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

 

 

add script to computer config / windows / scripts startup Then add your VLK as a parameter

 

that should do it please see attachment for screenie

grouppolicy.JPG

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...