Skip to content

Instantly share code, notes, and snippets.

@nerun
Forked from Zibri/KMS_office.cmd
Last active January 15, 2026 15:12
Show Gist options
  • Select an option

  • Save nerun/b6915d95cff57fa79c9b4fd12f0c77ab to your computer and use it in GitHub Desktop.

Select an option

Save nerun/b6915d95cff57fa79c9b4fd12f0c77ab to your computer and use it in GitHub Desktop.
KMS server Windows

HowTo

  • Last updated: 2026-01-15

Warning

This method activates Windows 11 just for 6 months!

In PowerShell as administrator:

slmgr /ipk <PRODUCT SERIAL NUMBER>

slmgr /skms <SERVER IP ADDRESS AS PROVIDED BELOW, CHOOSE ONE>:1688

slmgr /ato

Servers

Test if a KMS server is online or not

PowerShell:

Test-NetConnection <SERVER IP ADDRESS AS PROVIDED BELOW> -Port 1688

CMD:

telnet <SERVER IP ADDRESS AS PROVIDED BELOW> 1688

But will not need to test, just take an online server from the list below, if do not work take another.

Online KMS host address

  • 122.226.152.230
  • 222.184.9.98
  • 98.212.2.163
  • cy2617.jios.org
  • heu168.6655.la
  • hq1.chinancce.com
  • key.17108.com
  • kms8.MSGuides.com
  • kms9.MSGuides.com
  • kms.bige0.com
  • kms.cangshui.net
  • kms.chinancce.com
  • kms.cnlic.com
  • kms.ddddg.cn
  • kms.ddns.net
  • kms.digiboy.ir
  • kms.guowaifuli.com
  • kms.ijio.net
  • kms.library.hk
  • kms.loli.beer
  • kms.lolico.moe
  • kms.lotro.cc
  • kms.mogeko.me
  • kms.shuax.com
  • kms.srv.crsoo.com
  • kms.xspace.in
  • kms.zhuxiaole.org
  • windows.kms.app
  • zh.us.to

Offline kms host address

  • 106.186.25.2393
  • 140.133.45.107
  • 147.134.1.42
  • 192.168.2.81.2.7.0
  • 222.76.251.188
  • 45.78.3.223
  • 54.223.212.31
  • 58.173.212.51
  • amrice.top
  • annychen.pw
  • cckms.nccu.edu.tw
  • dimanyakms.sytes.net:1688
  • fourdeltaone.net:1688
  • franklv.ddns.net
  • kensol263.imwork.net:1688
  • kms.03k.org:1688
  • kms.51it.wang
  • kms789.com
  • kms7.MSGuides.com
  • kms.aglc.cc
  • kms.cin.ink
  • kms.crackmywpa.com
  • kms.cz9.cn
  • kms.ddz.red
  • kms.didichuxing.coms
  • kms.iaini.net
  • kms.isu.edu.tw
  • kms.izetn.cn
  • kms.jm33.me
  • kms.landiannews.com
  • kms.moeclub.org
  • kms.v0v.bid
  • kms.ymgblog.com
  • k.zpale.com
  • lsu-kms.lsu.edu
  • mhd.kmdns.net110
  • mvg.zpale.com
  • m.zpale.com
  • nb.shenqw.win
  • noair.strangled.net:1688
  • noip.me
  • rss.vicp.net:20439
  • toxykz.f3322.org
  • uitsckms.uit.tufts.edu
  • vhk.3322.org
  • whwebsolution.no-ip.org
  • win81.no-ip.org
  • winkms.tk
  • xykz.f3322.org

Another much more versatile method:

For Windows Vista up to 11, and for Office 2013 and beyond, this also works and activation is permanent.

In PowerShell as admin:

irm https://get.activated.win | iex

or

irm https://massgrave.dev/get | iex
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo
============================================================================&echo
Activating your Office...&cscript //nologo ospp.vbs /unpkey:6MWKP >nul&cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-
6MWKP >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms7.MSGuides.com
if %i%==2 set KMS_Sev=kms8.MSGuides.com
if %i%==3 set KMS_Sev=kms9.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul&echo
============================================================================&echo.&echo.
cscript //nologo ospp.vbs /act | find /i "successful" && (echo.&echo
============================================================================&echo.&echo
============================================================================&echo
Sorry! Your version is not supported.&echo Please try installing the latest version here: bit.ly/aiomsp
:halt
pause >nul

Activate Office

Go to the Office folder

cd "C:\Program Files\Microsoft Office\Office16"

Configure KMS server

cscript ospp.vbs /sethst:kms.digiboy.ir
cscript ospp.vbs /setprt:1688

Attempt to activate

cscript ospp.vbs /act

Check status

cscript ospp.vbs /dstatus
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Use: $0 <file.txt>"
exit 1
fi
file_online="servers_online.txt"
file_offline="servers_offline.txt"
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
echo "" >> "$file_online"
echo "# Verification: $1 - $timestamp" >> "$file_online"
echo "" >> "$file_offline"
echo "# Verification: $1 - $timestamp" >> "$file_offline"
echo "Checking file URLs: $1"
echo ""
while IFS= read -r url || [ -n "$url" ]; do
url=$(echo "$url" | xargs)
if [[ -z "$url" || "$url" == \#* ]]; then
continue
fi
echo "Checking: $url"
if ping -c 2 -W 2 "$url" > /dev/null 2>&1; then
echo " ✅ ONLINE"
echo "$url" >> "$file_online"
else
echo " ❌ OFFLINE"
echo "$url" >> "$file_offline"
fi
done < "$1"
echo "Results added to existing files."

Windows 10 serials

Home/Core                            TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific)         PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language)          7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N                          3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional                         W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N                       MH37W-N47XK-V7XM9-C7227-GCQG9
Enterprise                           NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N                         DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Education                            NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Education N                          2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Enterprise 2015 LTSB                 WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Enterprise 2015 LTSB N               2F77B-TNFGY-69QQF-B8YKP-D69TJ
Enterprise 2016 LTSB                 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Enterprise 2016 LTSB N               QFFDN-GRT3P-VKWWX-X7T3R-8B639

Windows 11 serials

Windows 11 Home                         TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Windows 11 Home N                       3KHY7-WNT83-DGQKR-F7HPR-844BM
Windows 11 Home Home Single Language    7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Windows 11 Home Country Specific        PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
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
Windows 11 Education                    NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 11 Education N                  2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
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 G N               44RPN-FTY23-9VTTB-MP9BX-T84FV
Windows 11 Enterprise LTSC 2019         M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Windows 11 Enterprise N LTSC 2019       92NFX-8DJQP-P6BBQ-THF9C-7CG2H

Activate Windows 10 Pro

slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms.digiboy.ir
slmgr /ato

Comments are disabled for this gist.