代码改变世界

1分钟试用PowerShell 5.0新功能PowerShellGet安装Script Browser和Script Analyzer

2014-05-23 05:23  Jialiang  阅读(1746)  评论(1编辑  收藏  举报

 

微软PowerShell 产品组上周发布了PowerShell 5.0 PowerShellGet功能。有了它,IT 人员可以方便地搜索,安装,更新PowerShell Module。在这篇博客中,我将演示如果使用PowerShellGet安装微软ScriptBrowser和ScriptAnalyzer应用程序。

首先,你需要下载和安装PowerShell 5.0 http://go.microsoft.com/fwlink/?LinkId=398175

安装完成后,启动PowerShell ISE (Powershell_ise.exe),在PowerShell console中,键入如下命令。

Install-Module ScriptBrowser –Scope CurrentUser

image

安装完成后,你可以键入以下命令运行script browser和script analyzer

Enable-ScriptBrowser

Enable-ScriptAnalyzer

image

整个安装过程非常方便。