求教关于命令设置ie代理
请问怎么用dos命令设置ie浏览器工具-> 选项-> 连接-> 局域网设置-> 代理服务器?
------解决方案--------------------使用WMI脚本可以实现:
'把脚本存为setProxy.vbs ,命令行里运行:cscript setproxy.vbs
strComputer = ". "
Set objWMIService = GetObject( "winmgmts:\\ " & strComputer & "\root\CIMV2 ")
Set objShare = objWMIService.Get( "Win32_Proxy.ServerName= '你的计算机名称 ' ")
Set objInParam = objShare.Methods_( "SetProxySetting "). _
inParameters.SpawnInstance_()
' 添加端口号和代理服务器地址
objInParam.Properties_.Item( "ProxyPortNumber ") = "80 "
objInParam.Properties_.Item( "ProxyServer ") = "192.168.0.15 "
Set objOutParams = objWMIService.ExecMethod( "Win32_Proxy.ServerName= '你的计算机名称 ' ", "SetProxySetting ", objInParam)
Wscript.Echo "Out Parameters: "
Wscript.echo "ReturnValue: " & objOutParams.ReturnValue
------解决方案--------------------帮顶……
------解决方案--------------------只有幫頂的份...