reggiep Posted February 15, 2011 Posted February 15, 2011 (edited) I am currently going through 19 laptops where I need to change the windows 7 key. I have a batch file I can run to do this but need to edit it each time like so... slmgr.vbs -ipk gvh6k-00000-99999-88888-77777 Is there a way I can get the batch file to ask me to input the key when it is run? I know I need to use % somewhere! Thanks Edited February 15, 2011 by reggiep spelling
djwingfield Posted February 16, 2011 Posted February 16, 2011 Morning, The syntax for SET, "SET /P variable=[promptString]" So what you will need is the following script, set /p key= slmgr.vbs -ipk %key% 1
reggiep Posted February 16, 2011 Author Posted February 16, 2011 Wow thanks for the quick reply djwingfield. I shall give that a go and add it to my knowledge base!
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