Windows is the most widely used computer operating system in the world, with millions of downloads across the globe. However, it has the drawback that all users of Windows and Office products face : using it without a license is not free, as it carries the risk of falling prey to computer viruses or hackers.
If you don’t have a Windows license , your PC will never receive operating system updates , leaving it vulnerable to the dangers we mentioned earlier. Everyone knows there are programs to activate Windows for free , but the problem with all of them is that they’re illegal . The good news is that there are ways to activate Windows for free, safely, and completely legally.
- Activate Windows using the command line
- How to get a valid Windows 10 and 11 key for free and legally
- Activation codes for Windows 10 Pro
- Activation codes for Windows 10 Home and Education
- Activation codes for Windows 10 Enterprise
- Activation codes for Windows 11 Pro
- Activation codes for Windows 11 Home and Education
- Activation codes for Windows 11 Enterprise
- Other uses of the slmgr.vbs command
Activate Windows using the command line
Windows is full of commands and tricks that you might not be fully aware of ; here we’ll show you some very useful ones. The first step is to open the Command Prompt (CMD) , and to do this, open the Windows search bar and type the word CMD .
Once the program is open, log in with administrator privileges by right-clicking and selecting the corresponding option. Then, type these commands:
- slmgr /ipk XXXX-XXXX-XXXX-XXXX-XXXX (product key goes here)
- slmgr /skms kms.digiboy.ir Another option if this command fails is to type kms.msguides.com
- slmgr /ato
Once you have entered the commands, you will see that three different windows will open where you can see the activation progress.
Activate Windows using the CMD command line
Once the process is complete, close the Windows window and it will be automatically activated . To verify that everything was done correctly, you can check from the Control Panel or by opening the console again.
You can verify that the license was activated correctly from the Windows Control Panel. Image: rootear.com
How to get a valid Windows 10 and 11 key for free and legally
Did you know that you can get generic Windows keys to activate your operating system ? This saves you from having to pay for a license. The good news is that it’s completely legal; generic codes are keys that Microsoft provides to its users to activate Windows for a limited time. In some cases, activation codes don’t have an expiration date, meaning they work indefinitely.
You might be wondering where or how to get these codes ; it’s very easy, you just need to go to the official Microsoft forums or their official website to do a search.
Once you have the codes, you just need to activate Windows through the CMD console as explained here. Here are some generic codes you can use depending on the Windows version you want to activate:
Activation codes for Windows 10 Pro
- Windows 10 Pro : W269N-WFGWX-YVC9B-4J6C9-T83GX
- Windows 10 Pro N : MH37W-N47XK-V7XM9-C7227-GCQG9
- Windows 10 Pro for Workstations : NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
- Windows 10 Pro for Workstations N : 9FNHH-K3HBT-3W4TD-6383H-6XYWF
- Windows 10 Pro Education : 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
- Windows 10 Pro Education N : YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
Activation codes for Windows 10 Home and Education
- Windows 10 Home : TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
- Windows 10 Education : NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
- Windows 10 Education N : 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Activation codes for Windows 10 Enterprise
- Windows 10 Enterprise : NPPR9-FWDCX-D2C8J-H872K-2YT43
- Windows 10 Enterprise N : DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
- Windows 10 Enterprise G : YYVX9-NTFWV-6MDM3-9PT4T-4M68B
- Windows 10 Enterprise GN : 44RPN-FTY23-9VTTB-MP9BX-T84FV
Activation codes for Windows 11 Pro
- Windows 11 Pro : W269N-WFGWX-YVC9B-4J6C9-T83GX
- Windows 11 Pro N : MH37W-N47XK-V7XM9-C7227-GCQG9
- Windows 11 Pro for Workstations : NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
- Windows 11 Pro for Workstations N: 9FNHH-K3HBT-3W4TD-6383H-6XYWF
- Windows 11 Pro Education : 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
- Windows 11 Pro Education N : YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
Activation codes for Windows 11 Home and Education
- Windows 11 Home : TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
- Windows 11 Education : NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
- Windows 11 Education N : 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Activation codes for Windows 11 Enterprise
- Windows 11 Enterprise : NPPR9-FWDCX-D2C8J-H872K-2YT43
- Windows 11 Enterprise N : DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
- Windows 11 Enterprise G : YYVX9-NTFWV-6MDM3-9PT4T-4M68B
- Windows 11 Enterprise GN : 44RPN-FTY23-9VTTB-MP9BX-T84FV
Other uses of the slmgr.vbs command
Besides activating your Windows license , this command has many other uses. If you run it without specifying any other parameters, it will display the help information and explain all the available options; if you try it, you’ll see there are quite a few.
Some of the things you can find out using the slmgr.vbs command are the license expiration date, the license status , and a wealth of other related information. As you’ve seen, it’s very easy to activate Windows using the CMD command line, as well as to obtain a free and legal license code.

