- Change Windows 8.1 Product Key Cmd
- Change Windows 8 Product Key Cmd
- Change Windows 8 Serial Key Cmd Code
I need to deploy windows images to several computers that came with Windows 8.1.I did manage to inject drivers and updates and some necessary softwares to the installation image, but somehow it seems that just installing Windows won't activate the operating system, and I have to find the license keys embedded in the BIOS and activate them manually.
- It can be done via the command line. Open up a Command Prompt (Press the Windows Button and type CMD or navigate to All Programs -> Accessories -> Command Prompt). Then you just need to use the command below that matches your OS.
- How To Find Windows Product Key Using CMD, PowerShell, And Windows Registry.
- Windows 8 pro product key: Here is the Ultimate Window 8 key, a complete guide to the Window 8 Serial keys and windows activation. Everything you need in order to activate your copy of Windows. To check and know about the History of Windows 8, you can visit Wikipedia.We will thoroughly help you through your activation process for your Premium windows operating system.
Press Windows key + X then click Run, then type: slui.exe 4. Next press the 'ENTER' key. Select your 'Country' from the list. Choose the 'Phone Activation' option. Stay on the phone (do not select/press any options) and wait for a person to help you with activation. Explain your problem clearly to the support person. Jan 17, 2012 I have pirated version of Windows 7 in my machine. But now I bought License for Windows 7. Is it possible I can change my product key with existing installation or I need to reinstall with the original CD? Any advise would be appreciated. Thanks Hi gopal_krishnan, I usually don't link to non-microsoft pages, but I couldn't find a 'How To.
I found out that wmic path softwarelicenseingservice get oa3xoriginalproductkey
could be used to extract the product key from the bios, and I am thinking about composing a batch file that uses this command in joint with slmgr -ipk
and slmgr -ato
, and then make it run as the firstlogon command.
The trouble is that I don't know a lot about batch syntax, and I am having a hard time assigning the product key as a variable and passing it over to slmgr commands.
It seems that the wmic command returns the result as:
So there it returns the product key in a three line text, with the actual useful information sandwiched between other strings. How can I just get the middle(or second) line from this text and assign it as a variable?

4 Answers
Maybe this will work for you. Note it does involve a temporary text file.
Change Windows 8.1 Product Key Cmd
Which will always extract the second line of output from the command.I have tested this with the data you provided and it outputted XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
. TO access this variable always refer to it as %var%
.

Change Windows 8 Product Key Cmd
Here's how i would do it

Logon scripts accept powershell scripts which has much more features and strength in it than the old batch files.
with this command, you get your ProductID into the $key variable and free to do any manipulation you'd like with it