标题: [转贴] VBS脚本将OA系统添加到IE受信任站点 [打印本页]
作者: VBScript 时间: 2012-4-7 22:16 标题: VBS脚本将OA系统添加到IE受信任站点
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set WSHShell = CreateObject("WScript.Shell")
- on Error resume next
- WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range111\",""
- WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range111\http ","2","REG_DWORD"
- WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range111\:Range ","oa.hazx.cn"
- Wscript.Echo "Added http://oa.hazx.cn to Trusted sites Zone successfully."
复制代码
http://lzy821218.blog.51cto.com/209800/273538
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |