--- tags: Windows title: Windows KMS 相關命令 --- # 目錄 [TOC] # Windows ## slmgr.vbs 命令 ### KMS 啟用 根據安裝的產品金鑰,授權 Windows ```cmd slmgr.vbs /ato ``` ### 安裝產品金鑰 安裝 5×5 產品金鑰 ```cmd slmgr.vbs /ipk <ProductKey> ``` ### 移除產品金鑰 移除 5×5 產品金鑰 ```cmd slmgr.vbs /upk <ProductKey> ``` ### 顯示授權資訊 ```cmd slmgr.vbs /dli ``` ### 顯示詳細的授權資訊 ```cmd slmgr.vbs /dlv ``` ### 顯示產品的啟用到期日 ```cmd slmgr.vbs /xpr ``` ### 設定 KMS 伺服器主機 IP 和 Port 此選項指定要連線之 KMS 主機電腦的名稱和連接埠 (選擇性)。 **此作業必須提升權限執行。** For IPv4 ```cmd slmgr.vbs /skms <IP>:<Port> ``` For IPv6 ```cmd slmgr.vbs /skms <hostname>:<port> ``` ## Retail 版本轉 KMS 版本 1. 直接移除目前金鑰 ``` slmgr.vbs /upk ``` 2. 安裝相對應金鑰即可 ``` slmgr.vbs /ipk <ProductKey> ``` ## 家用版升級成專業版 1. 中斷網際網路連線 2. 前往設定>更新與安全性>啟用>變更產品金鑰 3. 輸入此金鑰【VK7JG-NPHTM-C97JM-9MPGT-3V66T】 4. 然後系統會自動重新啟動 5. 完成,升級完畢,接下來輸入購買的專業版序號啟用或使用 KMS 認證啟用即可 # Microsoft Office ## ospp.vbs 命令 :::warning 此作業必須提升權限執行。 ::: :::info 這個腳本可以在 Office 的安裝目錄中(`%installdir%\Program Files\Microsoft Office\*`)找到, *號分別代表 2010 版為`\Office14`,2013 版為`\Office15`,2016 版為`\Office16`, 如果在 64 位元的電腦上,安裝了32 位元的 Office,則目錄是`%installdir%\Program Files (x86)\Microsoft Office\`。 資訊來自[這裡](https://py-kms.readthedocs.io/en/latest/Documentation.html#ospp) ::: ### KMS 啟用 授權已安裝產品金鑰的 Office ``` cscript ospp.vbs /act ``` ### 安裝產品金鑰 ``` cscript ospp.vbs /inpkey:<product key> ``` ### 移除產品金鑰 ``` cscript ospp.vbs /unpkey:<product key> ``` ### 顯示授權資訊 顯示目前已安裝產品金鑰的授權資訊 ``` cscript ospp.vbs /dstatus ``` ### 設定 KMS 主機名稱 ``` cscript ospp.vbs /sethst:<HostName or IP> ``` ### 設定 KMS 主機端口 ``` cscript ospp.vbs /setprt:<Port> ``` # 產品大量授權金鑰 [GVLK 的一般大量授權金鑰](https://docs.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys#generic-volume-license-keys-gvlk) 在接下來的表格中,您會發現每個版本和 Windows 版的 GVLK。 LTSC 是 _長期維護通道_,而 LTSB 則是 _長期維護分支_。 ## [Windows Server (LTSC 版本)](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#windows-server-ltsc) ### [Windows Server 2025](https://docs.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys#windows-server-2025) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------------------- | ----------------------------- | | Windows Server 2025 Standard | TVRH6-WHNXV-R9WG3-9XRFY-MY832 | | Windows Server 2025 Datacenter | D764K-2NDRG-47T6Q-P8T8W-YP6DF | | Windows Server 2025 Datacenter:Azure Edition | XGN3F-F394H-FD2MY-PP6FD-8MCRC | ### [Windows Server 2022](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2022%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#tabpanel_1_server2022) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------------------- | ----------------------------- | | Windows Server 2022 Standard | VDYBN-27WPP-V4HQT-9VMD4-VMK7H | | Windows Server 2022 Datacenter | WX4NM-KYWYW-QJJR4-XV3QB-6VM33 | | Windows Server 2022 Datacenter:Azure Edition | NTBV8-9K7Q8-V27C6-M2BTV-KHMXV | ### [Windows Server 2019](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2019%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#tabpanel_1_server2019) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------------ | ----------------------------- | | Windows Server 2019 Standard | N69G4-B89J2-4G8F4-WWYCC-J464C | | Windows Server 2019 Datacenter | WMDGN-G9PQG-XVVXX-R3X43-63DFG | | Windows Server 2019 Essentials | WVDHN-86M7X-466P6-VHXV7-YY726 | ### [Windows Server 2016](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2016%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#tabpanel_1_server2016) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------------ | ----------------------------- | | Windows Server 2016 Standard | WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY | | Windows Server 2016 Datacenter | CB7KF-BWN84-R7R2Y-793K2-8XDDG | | Windows Server 2016 Essentials | JCKRF-N37P4-C2D82-9YXRT-4M63B | --- ## [Windows Server (半年通道版本)](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#windows-server-semi-annual-channel) ### [Windows Server、版本 20H2、2004、1909、1903 和 1809](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#windows-server-versions-20h2-2004-1909-1903-and-1809) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------- | ----------------------------- | | Windows Server Standard | N2KJX-J94YW-TQVFB-DG9YT-724CC | | Windows Server Datacenter | 6NMRW-2C8FM-D24W7-TQWMY-CWH2D | --- ## [Windows 11/10 (半年通道版本)](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#windows-11-and-windows-10-semi-annual-channel) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------------------------------------ | ----------------------------- | | Windows 11 專業版<br />Windows 10 專業版 | W269N-WFGWX-YVC9B-4J6C9-T83GX | | Windows 11 專業版 N<br />Windows 10 專業版 N | MH37W-N47XK-V7XM9-C7227-GCQG9 | | Windows 11 專業工作站版<br />Windows 10 工作站專業版 | NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J | | Windows 11 專業工作站版 N<br />Windows 10 工作站專業版 N | 9FNHH-K3HBT-3W4TD-6383H-6XYWF | | Windows 11 專業教育版 <br />Windows 10 專業教育版 | 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y | | Windows 11 專業教育版 N<br />Windows 10 專業教育版 N | YVWGF-BXNMC-HTQYQ-CPQ99-66QFC | | Windows 11 教育版<br />Windows 10 教育版 | NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 | | Windows 11 教育版 N<br />Windows 10 教育版 N | 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ | | Windows 11 企業版<br />Windows 10 企業版 | NPPR9-FWDCX-D2C8J-H872K-2YT43 | | Windows 11 企業版 N<br />Windows 10 企業版 N | DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 | | Windows 11 企業版 G<br />Windows 10 企業版 G | YYVX9-NTFWV-6MDM3-9PT4T-4M68B | | Windows 11 企業版 G N<br />Windows 10 企業版 G N | 44RPN-FTY23-9VTTB-MP9BX-T84FV | --- ## [Windows 10 (LTSC/LTSB 版本)](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#windows-enterprise-ltsc-and-ltsb) ### [Windows 11 LTSC 2024<br />Windows 10 LTSC 2021、2019](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#tabpanel_2_windows1110ltsc) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------------------------------------------------------------------------- | ----------------------------- | | Windows 11 企業版 LTSC 2024<br />Windows 10 企業版 LTSC 2021<br />Windows 10 企業版 LTSC 2019 | M7XTQ-FN8P6-TTKYV-9D4CC-J462D | | Windows 11 企業版 N LTSC 2024<br />Windows 10 企業版 N LTSC 2021<br />Windows 10 企業版 N LTSC 2019 | 92NFX-8DJQP-P6BBQ-THF9C-7CG2H | ### [Windows IoT LTSC](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwinowsiot%2Cversion1803%2Cwindows81#tabpanel_2_winowsiot) | 作業系統版本 | KMS 用戶端產品金鑰 | | -------------------------------------------------------------- | ----------------------------- | | Windows IoT 企業版 LTSC 2024<br />Windows IoT 企業版 LTSC 2021 | KBN8V-HFGQ4-MGXVD-347P6-PDQGT | ### [Windows 10 LTSB 2016](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102016%2Cversion1803%2Cwindows81#tabpanel_2_windows102016) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------- | ----------------------------- | | Windows 10 企業版 LTSB 2016 | DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ | | Windows 10 企業版 N LTSB 2016 | QFFDN-GRT3P-VKWWX-X7T3R-8B639 | ### [Windows 10 LTSB 2015](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2Cversion1803%2Cwindows81#tabpanel_2_windows102015) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------- | ----------------------------- | | Windows 10 企業版 2015 LTSB | WNMTR-4C88C-JK8YV-HQ7T2-76DF9 | | Windows 10 企業版 2015 LTSB N | 2F77B-TNFGY-69QQF-B8YKP-D69TJ | --- ## [舊版 Windows Server](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2Cversion1803%2Cwindows81#earlier-versions-of-windows-server) ### [Windows Server 1803 版](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2Cversion1803%2Cwindows81#tabpanel_3_version1803) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------- | ----------------------------- | | Windows Server Standard | PTXN8-JFHJM-4WC78-MPCBR-9W4KR | | Windows Server Datacenter | 2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG | ### [Windows Server 1709 版](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2Cversion1709%2Cwindows81#tabpanel_3_version1709) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------- | ----------------------------- | | Windows Server Standard | DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4 | | Windows Server Datacenter | 6Y6KB-N82V8-D8CQV-23MJW-BWTG6 | ### [Windows Server 2012 R2](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2012r2%2Cwindows81#tabpanel_3_2012r2) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------- | ----------------------------- | | Windows Server 2012 R2 Standard | D2N9P-3P6X9-2R39C-7RTCD-MDVJX | | Windows Server 2012 R2 Datacenter | W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9 | | Windows Server 2012 R2 Essentials | KNC87-3J2TX-XB4WP-VCPJV-M4FWM | ### [Windows Server 2012](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2012%2Cwindows81#tabpanel_3_2012) | 作業系統版本 | KMS 用戶端產品金鑰 | | --------------------------------------- | ----------------------------- | | Windows Server 2012 | BN3D2-R7TKB-3YPBD-8DRP2-27GG4 | | Windows Server 2012 N | 8N2M2-HWPGY-7PGT9-HGDD8-GVGGY | | Windows Server 2012 單一語言 | 2WN2H-YGCQR-KFX6K-CD6TF-84YXQ | | Windows Server 2012 國家/地區特定 | 4K36P-JN4VD-GDC6V-KDT89-DYFKP | | Windows Server 2012 Standard | XC9B7-NBPP2-83J2H-RHMBY-92BT4 | | Windows Server 2012 MultiPoint Standard | HM7DN-YVMH3-46JC3-XYTG7-CYQJJ | | Windows Server 2012 MultiPoint Premium | XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G | | Windows Server 2012 Datacenter | 48HP8-DN98B-MYWDG-T2DCC-8W83P | | Windows Server 2012 Essentials | HTDQM-NBMMG-KGYDT-2DTKT-J2MPV | ### [Windows Server 2008 R2](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008r2%2Cwindows81#tabpanel_3_2008r2) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------------------------------ | ----------------------------- | | Windows Server 2008 R2 Web | 6TPJF-RBVHG-WBW2R-86QPH-6RTM4 | | Windows Server 2008 R2 HPC Edition | TT8MH-CG224-D3D7Q-498W2-9QCTX | | Windows Server 2008 R2 Standard | YC6KT-GKW9T-YTKYR-T4X34-R7VHC | | Windows Server 2008 R2 Enterprise | 489J6-VHDMP-X63PK-3K798-CPX3Y | | Windows Server 2008 R2 Datacenter | 74YFP-3QFB3-KQT8W-PMXWJ-7M648 | | Windows Server 2008 R2 for Itanium-based Systems | GT63C-RJFQ3-4GMB6-BRFB9-CB83V | ### [Windows Server 2008](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindows81#tabpanel_3_2008) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------------------------------- | ----------------------------- | | Windows Web Server 2008 | WYR28-R7TFJ-3X2YQ-YCY4H-M249D | | Windows Server 2008 Standard | TM24T-X9RMF-VWXK6-X8JC9-BFGM2 | | Windows Server 2008 Standard (無 Hyper-V) | W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ | | Windows Server 2008 Enterprise | YQGMW-MPWTJ-34KDK-48M3W-X4Q6V | | Windows Server 2008 Enterprise (無 Hyper-V) | 39BXF-X8Q23-P2WWT-38T2F-G3FPG | | Windows Server 2008 HPC | RCTX3-KWVHP-BR6TB-RB6DM-6X7HP | | Windows Server 2008 Datacenter | 7M67G-PC374-GR742-YH8V4-TCBY3 | | Windows Server 2008 Datacenter (無 Hyper-V) | 22XQ2-VRXRG-P8D42-K34TD-G3QQC | | 適用於 Itanium 型系統的 Windows Server 2008 | 4DWFP-JF3DJ-B7DTH-78FJB-PDRHK | --- ## [舊版 Windows 用戶端](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindows81#earlier-versions-of-windows-client) ### [Windows 8.1](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindows81#tabpanel_4_windows81) | 作業系統版本 | KMS 用戶端產品金鑰 | | -------------------- | ----------------------------- | | Windows 8.1 專業版 | GCRJD-8NW9H-F2CDX-CCM8D-9D6T9 | | Windows 8.1 專業版 N | HMCNV-VVBFX-7HMBH-CTY9B-B4FXY | | Windows 8.1 企業版 | MHF9N-XY6XB-WVXMC-BTDCT-MKKG7 | | Windows 8.1 企業版 N | TT4HM-HN7YT-62K67-RGRQJ-JFFXW | ### [Windows 8](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindows8#tabpanel_4_windows8) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------ | ----------------------------- | | Windows 8 專業版 | NG4HW-VH26C-733KW-K6F98-J8CK4 | | Windows 8 專業版 N | XCVCF-2NXM9-723PB-MHCB7-2RYQQ | | Windows 8 企業版 | 32JNW-9KQ84-P47T8-D8GGY-CWCK7 | | Windows 8 企業版 N | JMNMF-RHW7P-DMY6X-RF3DR-X2BQT | ### [Windows 7](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindows7#tabpanel_4_windows7) | 作業系統版本 | KMS 用戶端產品金鑰 | | ------------------ | ----------------------------- | | Windows 7 專業版 | FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 | | Windows 7 專業版 N | MRPKT-YTG23-K7D7T-X2JMM-QY7MG | | Windows 7 專業版 E | W82YF-2Q76Y-63HXB-FGJG9-GF7QX | | Windows 7 企業版 | 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH | | Windows 7 企業版 N | YDRBP-3D83W-TY26F-D46B2-XCKRJ | | Windows 7 企業版 E | C29WB-22CC8-VJ326-GHFJW-H9DH4 | ### [Windows Vista](https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys?tabs=server2025%2Cwindows102015%2C2008%2Cwindowsvista#tabpanel_4_windowsvista) | 作業系統版本 | KMS 用戶端產品金鑰 | | ---------------------- | ----------------------------- | | Windows Vista 商用版 | YFKBB-PQJJV-G996G-VWGXY-2V3X8 | | Windows Vista 商用版 N | HMBQG-8H2RH-C77VX-27R82-VMQBT | | Windows Vista 企業版 | VKK3X-68KWM-X2YGT-QR4M6-4BWMV | | Windows Vista 企業版 N | VTC42-BM838-43QHV-84HX6-XJXKV | # KMS Server Emulator > [GitHub - SystemRage/py-kms: KMS Server Emulator written in Python](https://github.com/SystemRage/py-kms) > 已停止更新 > :::info > 支援以下啟用: > Windows Vista > Windows 7 > Windows 8 > Windows 8.1 > Windows 10 ( 1511 / 1607 / 1703 / 1709 / 1803 / 1809 ) > Windows 10 ( 1903 / 1909 / 20H1 ) > Windows Server 2008 > Windows Server 2008 R2 > Windows Server 2012 > Windows Server 2012 R2 > Windows Server 2016 > Windows Server 2019 > Microsoft Office 2010 ( Volume License 大量授權 ) > Microsoft Office 2013 ( Volume License 大量授權 ) > Microsoft Office 2016 ( Volume License 大量授權 ) > Microsoft Office 2019 ( Volume License 大量授權 ) > ::: > [GitHub - Py-KMS-Organization/py-kms: KMS Server Emulator written in Python](https://github.com/Py-KMS-Organization/py-kms) > 上方的替代產品,主要是上方專案的分支產品 > :::info > 支援以下啟用: > Windows Vista > Windows 7 > Windows 8 > Windows 8.1 > Windows 10 ( 1511 / 1607 / 1703 / 1709 / 1803 / 1809 ) > Windows 10 ( 1903 / 1909 / 20H1, 20H2, 21H1, 21H2 ) > Windows 11 ( 21H2 ) > Windows Server 2008 > Windows Server 2008 R2 > Windows Server 2012 > Windows Server 2012 R2 > Windows Server 2016 > Windows Server 2019 > Windows Server 2022 > Microsoft Office 2010 ( Volume License 大量授權 ) > Microsoft Office 2013 ( Volume License 大量授權 ) > Microsoft Office 2016 ( Volume License 大量授權 ) > Microsoft Office 2019 ( Volume License 大量授權 ) > Microsoft Office 2021 ( Volume License 大量授權 ) > ::: > # 參考資料 slmgr 命令: <https://docs.microsoft.com/zh-tw/windows-server/get-started/activation-slmgr-vbs-options> 產品金鑰(GVLK Keys): <https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys#generic-volume-license-keys> 產品金鑰(GVLK Keys): <https://py-kms.readthedocs.io/en/latest/Keys.html#gvlk-keys>
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up