公司新上線了一個OA系統,需要設定信任站點以及Active載入項才可以正常瀏覽訪問。如果在沒有域環境或者有很多分公司,那麼通過指令碼的方法,讓客戶端下載後,雙擊執行便可以設定成功。這樣的方式將大大提高使用者的體驗滿意度和我們的工作效率。將文字複製後儲存,設定為.bat檔案,修改相應所需的網站名稱即可。

指令碼如下: 

@echo off

reg delete “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomainsgzb.com” /va /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomainsgzb.com”
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomainsgzb.com” /v “*” /t REG_DWORD /d 2
reg delete “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange101” /a /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange101”
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange101” /a  “*” 
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange101” /a  “:Range” /t REG_SZ /d “192.168.1.238”
——————
reg delete “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscDomainsportal.palm-la.com” /va /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscDomainsportal.palm-la.com”
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscDomainsportal.palm-la.com” 
reg delete “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscRangesRange101” /a /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscRangesRange101”
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscRangesRange101” /v  “*”  REG_DWORD /d 2
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapEscRangesRange101” /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 Settingsones2” /v “1004” /t REG_DWORD /d 0 /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2” /v “1201” /t REG_DWORD /d 0 /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2” /v “1402” /t REG_DWORD /d 0 /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2” /v “2201” /t REG_DWORD /d 0 /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2” /v “1001” /t REG_DWORD /d 0 /f
reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2” /v “1405” /t REG_DWORD /d 0 /f
PAUSE