本帖最後由 cchh543-md 於 2013-10-18 14:20 編輯
win8 kms當道,
8.1電話啟用流行,
但處理安裝識別碼有點麻煩,
所以準備個小幫手,
碼如下 (存成命令檔,以管理者執行,順便於執行/ato時檢核key是否可用?)
===
del %homepath%\Desktop\my-dti.txt
:set key=YHXV3-XTNC3-CFVRD-R9P24-CR27D
set key=RPNH6-QT2BM-QF9B4-DJB7P-CKBDQ
cscript %windir%\system32\slmgr.vbs /ipk %key%
@echo slmgr /ipk %key% > %homepath%\Desktop\my-dti.txt
slmgr /ato
for /f "skip=3 tokens=2,* delims=: " %%i in ('cscript %windir%\system32\slmgr.vbs /dti') do set ifo=%%i
@echo === >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~0,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~7,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~14,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~21,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~28,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~35,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~42,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~49,7% >> %homepath%\Desktop\my-dti.txt
@echo %ifo:~56,7% >> %homepath%\Desktop\my-dti.txt
@echo === >> %homepath%\Desktop\my-dti.txt
pause
exit
===
執行結果(內含目前企業版/專業版可用key)
|