zoukankan      html  css  js  c++  java
  • IE设置信任站点和安全级别(bat文件)


    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange1" /v ":Range" /t REG_SZ /d 192.168.11.22 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapRangesRange1" /v "http" /t REG_DWORD /d 2 /f

    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1001" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1004" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1200" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1201" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1405" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "1406" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "2201" /t REG_DWORD /d 0 /f
    reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v "2202" /t REG_DWORD /d 0 /f

    @echo off

    echo 设置成功,请关闭IE重启
    pause

    上述设置之后就可以在IE中看到已经设置好的站点和其安全级别了。主要用于注册ocx控件(regsvr32 %SystemDrive%WINDOWSadmin.ocx).

    @echo off  
    echo 系统安装中,请不要关闭这个窗口  
    mshta vbscript:msgbox("准备开始设置IE安全级别",64,"设置IE安全级别")(window.close)  
      
    echo 1001 下载已签名的 ActiveX 控件  
    echo 1004 下载未签名的 ActiveX 控件  
    echo 1200 运行 ActiveX 控件和插件  
    echo 1201 对没有标记为安全的 ActiveX 控件进行初始化和脚本运行  
    echo 1405 对标记为可安全执行脚本的 ActiveX 控件执行脚本  
    echo 1406 通过域访问数据源  
    ::echo 1607 跨域浏览子框架  
    ::echo 2200 文件下载自动提示 **  
    ::echo 2201 ActiveX 控件自动提示 **  
      
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1001 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1004 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1200 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1201 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1405 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1406 /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 1607 /t REG_DWORD /d 00000000 /f  
    ::reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 2200 /t REG_DWORD /d 00000000 /f  
    ::reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v 2201 /t REG_DWORD /d 00000000 /f  
    ::reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones2" /v CurrentLevel /t REG_DWORD /d 00000000 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomainscom"  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomainsaidu.comwww" /v http /t REG_DWORD /d 0x00000002 /f  
    reg add "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomains10.170.100.131" /v http /t REG_DWORD /d 0x00000002 /f  
      
    echo 安装结束!  
    pause   
  • 相关阅读:
    linux:centos7开启指定端口,开放外网访问
    zookeeper 集群搭建
    单机安装zookeeper的3.4.7版本
    CentOS7下安装jdk1.8并配置环境变量,防火墙设置开关
    Redis分布式锁的正确实现方式
    MySQl5.7 忘记密码怎么办?
    Flink 之Window(窗口)
    Flink之Sink(文件、Kafka、Redis、Es、Mysql)
    Canal同步Mysql数据至Hbase
    Flink 之分流Select与Split
  • 原文地址:https://www.cnblogs.com/lishupeng/p/4889281.html
Copyright © 2011-2022 走看看