电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

windows通过脚本文件添加站点的方法


发布日期:2019/6/15
 

我们公司新上线了一个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通过脚本文件添加站点咯!

上一篇:系统配置打开方法

下一篇:如何关闭计算机自动发送错误报告功能?