横槊临江

New give up !

导航

随笔分类 -  Bat

PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this sy
摘要:PowerShell 默认不允许执行*.ps1脚本文件。运行ps1文件会得到下面的错误:File C:\Temp\Test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_signing" for more details.At line:1 char:19+ c:\Temp\Test.ps1 Set-ExecutionPolicy RemoteSigned Execution Policy Change 阅读全文

posted @ 2013-07-04 22:14 jian60521 阅读(542) 评论(0) 推荐(0)

bat 小工具
摘要:@echo ************************************************************************:start@echo offset /p s=[a:appwiz e:event m:mstsc r:regedit s:services]:if /i "%s%" equ "m" goto :mif /i "%s%" equ "a" goto :aif /i "%s%" equ "s" goto :sif /i &qu 阅读全文

posted @ 2013-07-04 22:13 jian60521 阅读(148) 评论(0) 推荐(0)

开VPN后能上网
摘要:@echo ************************************************************************:start@echo offset /p s=[c:clean s:set]:if /i "%s%" equ "c" goto :cif /i "%s%" equ "s" goto :stitle 自动设置代理服务器echo 自动设置代理服务器:crem echo 正在清空代理服务器设置……reg delete "HKEY_CURRENT_USER\ 阅读全文

posted @ 2013-07-04 22:08 jian60521 阅读(34) 评论(0) 推荐(0)

用命令行批处理bat,设置代理服务器、DNS、网关、WINS等
摘要:http://hi.baidu.com/83050158/blog/item/50cbd63f9da79ccb7d1e711b.html将下面代码复制到记事本,另存为NetSet.bat,修改相应ip地址,然后双击运行。@echo offtitle 自动设置代理服务器echo 自动设置代理服务器echo 【本程序由阿笨狗编写】echo 版权所有:http://www.pifoo.comecho QQ:33323489echo 需要以普通用户权限、管理员权限各运行本程序一次rem echo 正在清空代理服务器设置……rem reg add "HKCU\Software\Microsof 阅读全文

posted @ 2013-07-04 21:30 jian60521 阅读(1589) 评论(0) 推荐(0)