My company needs to change the windows key on a bunch of machines and I'd like to include all the steps in a script.
To change the key while the user is still logged in (they don't have admin rights), I need to run cmd as admin and then run two commands within that command prompt to change the key.
So basically this:
- Run cmd as admin
-u administrator -p passwordhere
- In that cmd line, run
slmgr.vbs -ipk 00000-00000-00000-00000-00000 //new key goes here
- In that cmd line, run
slmgr.vbs -ato // this activates windows once the new key gets entered