2014年3月5日 星期三

KMS認證指令

Windows Vista / Windows 7 / Windows 8 
(1)以系統管理員身份(權限)開啟命令提示字元視窗
(2)指定認證主機,輸入指令
C:\windows\system32\slmgr -skms xxx.xxx.xxx.xxx:1688
(3)啟動授權
C:\windows\system32\slmgr -ato

Office 2010
(1)以系統管理員身份(權限)開啟命令提示字元視窗
(2)依安裝Office 32/64位元版本,至指定目錄下輸入指令
Office 64位元版本
C:\Program Files\Microsoft Office\Office14\cscript ospp.vbs /sethst:xxx.xxx.xxx.xxx
C:\Program Files\Microsoft Office\Office14\cscript ospp.vbs /act
Office 32位元版本
C:\Program Files(x86)\Microsoft Office\Office14\cscript ospp.vbs /sethst:xxx.xxx.xxx.xxx
C:\Program Files(x86)\Microsoft Office\Office14\cscript ospp.vbs /act

Office 2013  
(1)以系統管理員身份(權限)開啟命令提示字元視窗
(2)依安裝Office 32/64位元版本,至指定目錄下輸入指令
Office 64位元版本
C:\Program Files\Microsoft Office\Office15\cscript ospp.vbs /sethst:xxx.xxx.xxx.xxx
C:\Program Files\Microsoft Office\Office15\cscript ospp.vbs /act
Office 32位元版本
C:\Program Files(x86)\Microsoft Office\Office15\cscript ospp.vbs /sethst:xxx.xxx.xxx.xxx
C:\Program Files(x86)\Microsoft Office\Office15\cscript ospp.vbs /act

slmgr 指令基本用法  
(1)變更產品金鑰 slmg.vbs -ipk +產品金鑰
(2)顯示啟用狀態(如啟用到期日期)  slmg.vbs -xpr
(3)顯示啟用狀態(如詳細的啟用識別資訊)  slmg.vbs -dlv

ospp.vbs 指令基本用法  
(1)顯示所安裝產品金鑰的授權資訊 cscript ospp.vbs /dstatus
(2)顯示所有安裝授權的授權資訊  cscript ospp.vbs /dstatusall
(3)顯示KMS用戶端啟用記錄  cscript ospp.vbs /dhistorykms