随笔分类 - PowerShell
摘要:powershell # 当前 shell 的代理 $env:HTTP_PROXY="http://127.0.0.1:1080" cmd rem 当前 shell 的代理 set http_proxy=http://127.0.0.1:1080
        阅读全文
                
摘要:常用命令 Remove-Item——删除指定的项目 Remove-Item [-Path] <String[]> [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Recurse] [-Force] [-Credenti
        阅读全文
                
摘要:# 添加Path环境变量后依然无法直接调用ps1脚本。因为ps1脚本使用的是$env:Path $env:Path="$env:Path;E:\jxch\bin"
        阅读全文
                
摘要:官方文档:https://technet.microsoft.com/zh-CN/library/hh847748.aspx "Restricted"是默认策略。 Restricted - 默认执行策略。 - 允许单个命令运行,但不能运行脚本。 - 阻止所有脚本文件的运行,包括格式和配置文件 (.p
        阅读全文
                
                    
                
浙公网安备 33010602011771号