1. net stop sharedaccess
  2. netsh firewall set opmode disable
    如果手工启用Windows自带的防火墙的话,则可执行如下两条命令中的任意一条:
  3. net start sharedaccess
  4. netsh firewall set opmode enable
    以上两种方法有的时候解决不了问题。还是来点狠的,从根子上解决
    On Error Resume Next
    Set rs=createObject(“Wscript.shell”)
    rs.run “sc.exe stop alg”,0
    rs.run “sc.exe stop SharedAccess”,0
    rs.run “sc.exe config Alg start= disabled”,0
    rs.run “sc.exe config SharedAccess start= disabled”,0
    以上代码保存为VBS文件,双击运行或者在CMD下运行cscript filename.vbs即可。
    这下世界清净了。