利用批處理新增受信任站點
阿新 • • 發佈:2019-01-30
比如說我們要把picasaweb.google.com time.ac.cn *.google.com新增到客戶的受信任站點
藍色部分後面有www(time.ac.cn\www)的為www.time.ac.cn 不加的話預設為*
例:*.google.com
"紅色部分為可修改的協議:
例如:"http","ftp"等其它名稱。
程式碼如下:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\com.cn"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\google.com\picasaweb" /v http /t REG_DWORD /d 0x00000002 /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\google.com
以上程式碼儲存為*.bat檔案。