To activate Windows 10 using the Command Prompt, follow these steps: Press the Windows key + X on your keyboard. SetLocal EnableExtensions EnableDelayedExpansionĬscript /Nologo 'C:\Windows\System32\slmgr. Step 1: Opening Command Prompt as an Administrator. offĬscript %windir%\system32\slmgr.vbs /ato | find /i 'successfully' & (goto status) 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. 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.