摘要:
参见:http://technet.microsoft.com/en-us/library/ee176949.aspx微软开发了powershell,但是使用起来麻烦。因为缺省情况下不能双击执行PS1文件运行。这是由powershell的安全特性决定的。使用assoc .ps1查看 ps1文件扩展名关联,得到.ps1=Microsoft.PowerShellScript.1写一个ps1脚本sample.ps1,内容如下write-host "hello,world"保存后双击运行不了。双击启动记事本了。解决办法命令行窗口提示符下键入powershell进入powershel 阅读全文
posted @ 2012-05-31 23:06
岌岌可危
阅读(382)
评论(0)
推荐(0)

浙公网安备 33010602011771号