After entering, click Enter and thats it. SetLocal EnableExtensions EnableDelayedExpansionĬscript /Nologo 'C:\Windows\System32\slmgr. 3) Next, on the command line, enter: slmgr -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (where X is the key itself). The command will only display a product key if your computer came with Windows 10 pre-installed.
The steps below will show you how to do this with ease. Run Command Prompt as administrator, type wmic path softwarelicensingservice get OA3xOriginalProductKey into Command Prompt, and then hit Enter to find your Windows 10 product key. Related Articles: Turn on or Turn off Live Tile in Start Menu on Windows 10 How to Change. offĬscript %windir%\system32\slmgr.vbs /ato | find /i 'successfully' & (goto status) The first way to push activation through with your product key is by using the SLMGR command inside the Command Prompt. vbs -xpr to confirm whether your Windows 10 is activated or not. I want to know if my code is capable to run the command one after the other without interacting to click OK after activation of Windows or I should put addition command like ' Start /wait cmd '.' on each of commandline.