2017年3月29日 星期三

修正新版kms server會造成win7認證失效的問題

不用重新開機,一次完成認證,黑色桌布需要自行更改回來。

@echo off

cscript.exe %SystemRoot%\system32\slmgr.vbs -rearm

net stop sppsvc

net start sppsvc

cscript.exe %SystemRoot%\system32\slmgr.vbs -skms kms-server
%SystemRoot%\system32\slmgr.vbs -ato

自動判別windows版本 導向不同kms server 認證

另存成BAT檔,尚未完整測試過,在 win7 及 win10 可正常運作。

@echo off
for /f "tokens=4-7 delims=[.] " %%i in ('ver') do (if %%i==Version (set v=%%j.%%k) else (set v=%%i.%%j))

if "%v%" == "6.1" goto win7

cscript.exe %SystemRoot%\system32\slmgr.vbs -skms 1.1.1.1
%SystemRoot%\system32\slmgr.vbs -ato
goto end

:win7
cscript.exe %SystemRoot%\system32\slmgr.vbs -skms 2.2.2.2
%SystemRoot%\system32\slmgr.vbs -ato
goto end


:end

2016年9月19日 星期一

ip range

google "ipinfo + asxxxxx"

facebook    as32934
google        as15169
microsoft    as8075

2016年3月29日 星期二

google 的 IP 位址

參考:
https://support.google.com/a/answer/60764?hl=zh-Hant



nslookup -q=TXT _spf.google.com 8.8.8.8

nslookup -q=TXT _netblocks.google.com 8.8.8.8
nslookup -q=TXT _netblocks2.google.com 8.8.8.8
nslookup -q=TXT _netblocks3.google.com 8.8.8.8



即可拿到IP清單