SetLocal EnableExtensions EnableDelayedExpansionĬscript /Nologo 'C:\Windows\System32\slmgr.
offĬscript %windir%\system32\slmgr.vbs /ato | find /i 'successfully' & (goto status) You can configure a Windows Server computer to be a KMS host computer by installing the Volume Activation Services role and then running the Volume Activation Tools wizard.
Copy-paste the below code and press enter. Open an Administrator Command Prompt Window You must launch Command Prompt with Administrator access, right-click the Start button, or press Windows+X. To activate volume licensed versions of Office, including Project and Visio, you must have a Key Management Service (KMS) host computer. 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. Method 1 - PowerShell (Recommended) On Windows 8.1/10/11, right-click on the windows start menu and select PowerShell or Terminal (Not CMD).