- 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 |