
& choice /n /c YN /m "Do you want to restart your PC now ? " & if errorlevel 2 exit) || (echo The connection to the server failed! Trying to connect to another one. Once open, copy and paste the following command and then hit the Enter key: wmic path softwarelicensingservice get OA3xOriginalProductKey The 25-digit product key will then appear. If prompted, enter your Windows account password.

Enter or copy and paste slmgr /ato and hit Enter to activate Windows 10 with CMD. & echo ************************************ & echo. After you have located the product key, follow the steps enumerated below to activate Windows 10 using the key: Click on the Start menu icon from the taskbar and click on the option Computer. Right-click it and select Run As Administrator from the window that appears. Now, type slmgr /skms into the command line and press Enter.

If %i% = 5 set KMS_Sev =Ĭscript //nologo c:\windows\system32\slmgr.vbs /skms %KMS_Sev% > nulĬscript //nologo c:\windows\system32\slmgr.vbs /ato | find /i "successfully " & (echo. If %i% = 4 set KMS_Sev =AlwaysSmile.uk.to

SetLocal EnableExtensions EnableDelayedExpansionĬscript /Nologo "C:\Windows\System32\slmgr.Title Windows 10 ALL version activator &cls &echo ************************************ &echo Supported products: &echo - Windows 10 Home &echo - Windows 10 Professional &echo - Windows 10 Enterprise, Enterprise LTSB &echo - Windows 10 Education &echo. offĬscript %windir%\system32\slmgr.vbs /ato | find /i "successfully" & (goto status) wi Activate Windows 10 Pro - GitHub MAS WebActivate Windows using a product key. 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. How to Activate Windows 10/11 with Product Key/Digital License/CMD.
