标题: [其他] [已解决]网页安全设置的批处理 [打印本页]
作者: gdsxx 时间: 2009-6-30 16:50 标题: [已解决]网页安全设置的批处理
由于公司新启用了一套OS软件,需要把<Internet选项>---<自定义级别>里的组件和控件状态全修改为"启用",因为专卖店员工都不知道怎么设置,我想把这些弄成一个批处理,请问该怎么去写?希望大家赐教,谢谢!
[ 本帖最后由 gdsxx 于 2009-7-7 13:30 编辑 ]
作者: Batcher 时间: 2009-6-30 20:25
用RegFromApp监控浏览器进程,在浏览器中手工修改某个选项,在RegFromApp中可以看到系统是通过修改哪个注册表键值来实现的,然后自己在批处理中用reg命令实现即可。
作者: gdsxx 时间: 2009-7-1 08:46
能帮忙把代表做出来吗?我对批处理不懂
作者: Batcher 时间: 2009-7-1 12:55 标题: 回复 3楼 的帖子
你先用RegFromApp监控一下修改了哪些注册表键值,reg命令不会用没关系,很多人会帮你的。
作者: gdsxx 时间: 2009-7-7 11:26
用RegFromApp记录下了以下动作,请帮助制作成一个有效的批处理文件,谢谢
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap]
"ProxyBypass"=dword:00000001
"IntranetName"=dword:00000001
"UNCAsIntranet"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"2004"=dword:00000000
"2001"=dword:00000000
"2201"=dword:00000000
"1405"=dword:00000000
"1201"=dword:00000000
"2000"=dword:00000000
"1004"=dword:00000000
"1001"=dword:00000000
"1200"=dword:00000000
"1C00"=hex(3):00,00,03,00
"1402"=dword:00000000
"1400"=dword:00000000
"1407"=dword:00000000
"1606"=dword:00000000
"2100"=dword:00000000
"1607"=dword:00000000
"1A04"=dword:00000000
"1E05"=dword:00030000
"1809"=dword:00000000
"1601"=dword:00000000
"1406"=dword:00000000
"1802"=dword:00000000
"1609"=dword:00000000
"1206"=dword:00000000
"1608"=dword:00000000
"2300"=dword:00000000
"2102"=dword:00000000
"1804"=dword:00000000
"2101"=dword:00000000
"1800"=dword:00000000
"1803"=dword:00000000
"2200"=dword:00000000
"1604"=dword:00000000
"1A00"=dword:00020000
"DisplayName"="Internet"
"Description"="该区域中包含所有未放在其它区域中的网站"
"Icon"="inetcpl.cpl#001313"
"MinLevel"=dword:00011000
"RecommendedLevel"=dword:00011000
"CurrentLevel"=dword:00000000
"Flags"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
"DisplayName"="可信站点"
"Description"="该区域包含有您确认不会损坏计算机或数据的网站。"
"Icon"="inetcpl.cpl#00004480"
"MinLevel"=dword:00010000
"RecommendedLevel"=dword:00010000
"CurrentLevel"=dword:00000000
"Flags"=dword:00000047
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1]
"*"=dword:00000002
":Range"="211.103.158.93"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow]
"211.103.158.93"=hex(3):
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows]
"PlaySound"=dword:00000001
"UseSecBand"=dword:00000001
"BlockUserInit"=dword:00000000
"UseTimerMethod"=dword:00000000
"UseHooks"=dword:00000001
"AllowHTTPS"=dword:00000000
"PopupMgr"="yes"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History]
"DaysToKeep"=dword:00000007
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4]
"DisplayName"="受限站点"
"Description"="该区域中包含可能会损坏您的计算机或数据的网站。"
"Icon"="inetcpl.cpl#00004481"
"MinLevel"=dword:00012000
"RecommendedLevel"=dword:00012000
"CurrentLevel"=dword:00000000
"Flags"=dword:00000003
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]
"DisplayName"="本地 Intranet"
"Description"="该区域中包含您公司 Intranet 上的所有网站。"
"Icon"="shell32.dll#0018"
"MinLevel"=dword:00010000
"RecommendedLevel"=dword:00010500
"CurrentLevel"=dword:00000000
"Flags"=dword:000000db
作者: tireless 时间: 2009-7-7 11:54
保存为批处理:- Windows Registry Editor Version 5.00
- ;@cls & start regedit /s "%~f0" & exit /b
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap]
- "ProxyBypass"=dword:00000001
- "IntranetName"=dword:00000001
- "UNCAsIntranet"=dword:00000001
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
- "2004"=dword:00000000
- "2001"=dword:00000000
- "2201"=dword:00000000
- "1405"=dword:00000000
- "1201"=dword:00000000
- "2000"=dword:00000000
- "1004"=dword:00000000
- "1001"=dword:00000000
- "1200"=dword:00000000
- "1C00"=hex(3):00,00,03,00
- "1402"=dword:00000000
- "1400"=dword:00000000
- "1407"=dword:00000000
- "1606"=dword:00000000
- "2100"=dword:00000000
- "1607"=dword:00000000
- "1A04"=dword:00000000
- "1E05"=dword:00030000
- "1809"=dword:00000000
- "1601"=dword:00000000
- "1406"=dword:00000000
- "1802"=dword:00000000
- "1609"=dword:00000000
- "1206"=dword:00000000
- "1608"=dword:00000000
- "2300"=dword:00000000
- "2102"=dword:00000000
- "1804"=dword:00000000
- "2101"=dword:00000000
- "1800"=dword:00000000
- "1803"=dword:00000000
- "2200"=dword:00000000
- "1604"=dword:00000000
- "1A00"=dword:00020000
- "DisplayName"="Internet"
- "Description"="该区域中包含所有未放在其它区域中的网站"
- "Icon"="inetcpl.cpl#001313"
- "MinLevel"=dword:00011000
- "RecommendedLevel"=dword:00011000
- "CurrentLevel"=dword:00000000
- "Flags"=dword:00000001
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
- "DisplayName"="可信站点"
- "Description"="该区域包含有您确认不会损坏计算机或数据的网站。"
- "Icon"="inetcpl.cpl#00004480"
- "MinLevel"=dword:00010000
- "RecommendedLevel"=dword:00010000
- "CurrentLevel"=dword:00000000
- "Flags"=dword:00000047
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1]
- "*"=dword:00000002
- ":Range"="211.103.158.93"
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow]
- "211.103.158.93"=hex(3):
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows]
- "PlaySound"=dword:00000001
- "UseSecBand"=dword:00000001
- "BlockUserInit"=dword:00000000
- "UseTimerMethod"=dword:00000000
- "UseHooks"=dword:00000001
- "AllowHTTPS"=dword:00000000
- "PopupMgr"="yes"
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History]
- "DaysToKeep"=dword:00000007
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4]
- "DisplayName"="受限站点"
- "Description"="该区域中包含可能会损坏您的计算机或数据的网站。"
- "Icon"="inetcpl.cpl#00004481"
- "MinLevel"=dword:00012000
- "RecommendedLevel"=dword:00012000
- "CurrentLevel"=dword:00000000
- "Flags"=dword:00000003
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]
- "DisplayName"="本地 Intranet"
- "Description"="该区域中包含您公司 Intranet 上的所有网站。"
- "Icon"="shell32.dll#0018"
- "MinLevel"=dword:00010000
- "RecommendedLevel"=dword:00010500
- "CurrentLevel"=dword:00000000
- "Flags"=dword:000000db
复制代码
作者: gdsxx 时间: 2009-7-7 12:05
制作成BAT文件运行后无效果啊,是不是哪出错了?
作者: tireless 时间: 2009-7-7 12:14 标题: 回复 7楼 的帖子
你不是直接在 reg 文件里加 ;@cls & start regedit /s "%~f0" & exit /b 吧?要另外新建一个文本。
另,修改后估计要重启 ie 浏览器才能生效。
[ 本帖最后由 tireless 于 2009-7-7 12:15 编辑 ]
作者: keen 时间: 2009-7-7 12:32 标题: 回复 7楼 的帖子
怎么个没效果,你查看一下相应的注册表项中是否有添加进去了值?
作者: gdsxx 时间: 2009-7-7 13:29
可以用了,非常感谢!
作者: liaobiaoxing 时间: 2009-7-11 01:22
有点画蛇添足的意思,直接把你监控到的内容复制到记事本另存为REG文件,使用的时候双击导入就行了。做成批处理的意义在于批量处理。比如局域网内所有主机的统一设置。
作者: Batcher 时间: 2009-7-11 08:59 标题: 回复 11楼 的帖子
在注册表处于锁定状态时,reg文件是导不进去的。
欢迎光临 批处理之家 (http://bathome.net./) |
Powered by Discuz! 7.2 |