我們公司新上線了一個OA系統,需要設定信任網站以及Active附加元件才可以正常瀏覽訪問。如果在沒有域環境或者有很多分公司,那麼通過指令碼的方法,讓用戶端下載後,雙擊運行便可以設定成功。這樣的方式將大大提高使用者的體驗滿意度和我們的工作效率。將文本複製後儲存,設定為。bat檔案,修改相應所需的網站名稱即可。嘿嘿,很簡單吧!
指令碼如下:
@echo off
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzb.com" /va /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzb.com"
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzb.com" /v "*" /t REG_DWORD /d 2
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange101" /a /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange101"
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange101" /a "*"
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange101" /a ":Range" /t REG_SZ /d "192.168.1.238"
------
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportal.palm-la.com" /va /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportal.palm-la.com"
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportal.palm-la.com"
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange101" /a /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange101"
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange101" /v "*" REG_DWORD /d 2
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange101" /v ":Range" /t REG_SZ /d "192.168.1.238"
reg add "HKEY_USERS.DEFAULTSoftwareMicrosoftInternet ExplorerMain" "Start Page" /d "http://gzb.com/" /f >NUL
reg add "HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain" "Start Page" /d "http://gzb.com/" /f >NUL
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /v "DisableCAD" /t REG_DWORD /d >NUL
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "1004" /t REG_DWORD /d 0 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "1201" /t REG_DWORD /d 0 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "1402" /t REG_DWORD /d 0 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "2201" /t REG_DWORD /d 0 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "1001" /t REG_DWORD /d 0 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2" /v "1405" /t REG_DWORD /d 0 /f
PAUSE
以上是windows通過指令檔添加網站咯!