熱點推薦:
您现在的位置: 電腦知識網 >> 電腦常識 >> 正文

windows通過腳本文件添加站點的方法

2013-11-11 16:06:16  來源: 電腦常識 

  我們公司新上線了一個OA系統需要設置信任站點以及Active加載項才可以正常浏覽訪問如果在沒有域環境或者有很多分公司那麼通過腳本的方法讓客戶端下載後雙擊運行便可以設置成功這樣的方式將大大提高用戶的體驗滿意度和我們的工作效率將文本復制後保存設置為bat文件修改相應所需的網站名稱即可嘿嘿很簡單吧!

  腳本如下

  @echo off

  reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzbcom" /va /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzbcom"

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomainsgzbcom" /v "*" /t REG_DWORD /d

  reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange" /a /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange"

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange" /a "*"

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange" /a ":Range" /t REG_SZ /d ""

  

  reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportalpalmlacom" /va /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportalpalmlacom"

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscDomainsportalpalmlacom"

  reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange" /a /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange"

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange" /v "*" REG_DWORD /d

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapEscRangesRange" /v ":Range" /t REG_SZ /d ""

  reg add "HKEY_USERSDEFAULTSoftwareMicrosoftInternet ExplorerMain" "Start Page" /d "

  reg add "HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain" "Start Page" /d "

  reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /v "DisableCAD" /t REG_DWORD /d >NUL

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones" /v "" /t REG_DWORD /d /f

  PAUSE

  以上是windows通過腳本文件添加站點咯!


From:http://tw.wingwit.com/Article/Common/201311/7691.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.