Disease Posted August 15, 2012 Posted August 15, 2012 I am useless at CLI and such, I need t be able to execute the following commands via a batch file or something similar, how do I code te batch file so this executes when run? c:\program files\Microsoft Office\Office14\cscript ospp.vbs /inpkey:xxxxxxxxxx c:\program files\Microsoft Office\Office14\cscript ospp.vbs /sethst:xxxxxxxxxx c:\program files\Microsoft Office\Office14\cscript ospp.vbs /act It's so I can change all my office clients from MAK codes to KMS. Also can anyone point me to a useful site that would enable me to learn this black art
sister_annex Posted August 15, 2012 Posted August 15, 2012 I am useless at CLI and such, I need t be able to execute the following commands via a batch file or something similar, how do I code te batch file so this executes when run? c:\program files\Microsoft Office\Office14\cscript ospp.vbs /inpkey:xxxxxxxxxx c:\program files\Microsoft Office\Office14\cscript ospp.vbs /sethst:xxxxxxxxxx c:\program files\Microsoft Office\Office14\cscript ospp.vbs /act It's so I can change all my office clients from MAK codes to KMS. Also can anyone point me to a useful site that would enable me to learn this black art Try this... CD "c:\program files\Microsoft Office\Office14" cscript ospp.vbs /inpkey:xxxxxxxxxx cscript ospp.vbs /sethst:xxxxxxxxxx cscript ospp.vbs /act HTH 1
TheMinister Posted August 20, 2012 Posted August 20, 2012 Even easier, put each line in inverted commas. As long as your path is correct it. "c:\program files\Microsoft Office\Office14\cscript ospp.vbs /inpkey:xxxxxxxxxx" "c:\program files\Microsoft Office\Office14\cscript ospp.vbs /sethst:xxxxxxxxxx" "c:\program files\Microsoft Office\Office14\cscript ospp.vbs /act" The issue you'll face is that everytime the computer starts, it will want to run this. This can have disastrous effects on your licence usage. 1
Disease Posted August 21, 2012 Author Posted August 21, 2012 (edited) Thanks, worked a treat I am running it manually so it will only be running once per machine. Edited August 21, 2012 by Disease
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now