How to activate thru KMS server recent Enterprise or Pro editions of windows and office.

To activate any Ent, Datacenter, Pro Windows (vista, win7, win8, win8.1, win10, win2008r2, win2012, win2012r2, win2016) or office2010/2013/2016 use installed KMS server:

1. check that you use proper windows (not retail Ultimate, Home edition)

2. find out your KMS cdkey from official Microsoft site: link  for Windows  ; link2 for Windows; link for Office 2013  and link2 for Office2010

3. login to target pc under local admin (on target PC disable firewall)

4. for example if your KMS server has IP address 192.168.0.3 then

For Windows activation:

1. for windows 2008r2 ent

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk 489J6-VHDMP-X63PK-3K798-CPX3Y
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

2. for windows 2008r2 std

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

3. for windows 2012r2 std

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk D2N9P-3P6X9-2R39C-7RTCD-MDVJX
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

4. for windows 2016std

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

5. for windows 2019 std

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk N69G4-B89J2-4G8F4-WWYCC-J464C
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

6. for windows 7 pro

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

7. for windows 7 ent

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

8. for windows 10 pro

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

9. for windows 10 ent

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

10. for windows 2022 std

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk VDYBN-27WPP-V4HQT-9VMD4-VMK7H
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

11. for windows 11 ent

cd c:\windows\system32
c:
cscript slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
cscript slmgr.vbs /skms 192.168.0.3:1688
cscript slmgr.vbs /ato

MS OFFICE activation :

1. To activate Office 2010 std x32:
office2010std x32 commandline activation:

cd "c:\Program Files (x86)\Microsoft Office\Office14\"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
cscript ospp.vbs /act

2. To activate Office 2010 std x64:
office2010std x32 commandline activation:

cd "c:\Program Files\Microsoft Office\Office14\"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
cscript ospp.vbs /act

3. To activate Office 2010 Professional Plus (x32):
office2010std x32 commandline activation:

cd "c:\Program Files (x86)\Microsoft Office\Office14\"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
cscript ospp.vbs /act

4. To activate Office 2010 Professional Plus (x64):

cd "c:\Program Files\Microsoft Office\Office14\"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
cscript ospp.vbs /act

5. To activate Office 2013 std (x32):
office2010std x32 commandline activation:

cd "c:\Program Files (x86)\Microsoft Office\Office15"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:KBKQT-2NMXY-JJWGP-M62JB-92CD4
cscript ospp.vbs /act

6. To activate Office 2013 std (x64):

cd "c:\Program Files\Microsoft Office\Office15"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:KBKQT-2NMXY-JJWGP-M62JB-92CD4
cscript ospp.vbs /act

7. To activate Office 2013 pro plus (x64):

cd "c:\Program Files\Microsoft Office\Office15"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
cscript ospp.vbs /act

8. To activate Office 2013 pro plus (x32):
office2010std x32 commandline activation:

cd "c:\Program Files (x86)\Microsoft Office\Office15"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
cscript ospp.vbs /act

9. To activate Office 2016 Pro Plus (x64):

cd "c:\Program Files\Microsoft Office\Office16"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /act

10. To activate Office 2016 Pro Plus (x32):

cd "c:\Program Files (x86)\Microsoft Office\Office16"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /act

11. To activate Office LTSC Professional Plus 2021 (x64):

cd "c:\Program Files\Microsoft Office\Office16"
c:
cscript ospp.vbs /sethst:192.168.0.3
cscript ospp.vbs /Inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
cscript ospp.vbs /act

If you have only one version of Windows and one version of Office – you may just create bat script with above commands and put it in shared folder on the filesserver.

KMS activation works only for 180 days and should be auto renewed (computer should be from time to time in the same network with KMS server, or KMS server should be accessible by PC requesting activation). So don’t use it with home notebooks which after activation will not come back to your office any more.

If you prefer GUI you can try Microsoft VAMT, but latest VAMT (for win8/win2012 and later) became too monstrous, big and uses MSSQL so above scripts is more mobile and universal for me.

Popular KMS cdkeys (every company in the world use the same KMS cdkeys, but different host cdkey for KMS)

Windows Server 2022 Std VDYBN-27WPP-V4HQT-9VMD4-VMK7H
Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server 2019 Std N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2012 R2 Server Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 11 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 11 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 7 Professional FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Enterprise 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Office 2010 Standard   (clickable) V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
Office 2010 Professional Plus VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
Office 2013 Standard KBKQT-2NMXY-JJWGP-M62JB-92CD4
Office 2013 Professional Plus (clickable) YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Office Standard 2016 JNRGM-WHDWX-FJJG3-K47QV-DRTFM
Office Professional Plus 2016( clickable) XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
Office LTSC Professional Plus 2021 FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH

ps.

If your company has very segmented networks when RPC ports (from VAMT) and 1688 ports can be blocked , then maybe it’s better to use AD-based activation.

Also be sure that any antivirus (for example Kaspersky) doesn’t block above two vbs scripts.