windows通過指令檔添加網站的方法

來源:互聯網
上載者:User

  我們公司新上線了一個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通過指令檔添加網站咯!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.