Windows PowerShell 集成脚本环境(ISE)是一个图形主机应用程序,可用于在图形辅助环境中读取、写入、运行、调试和测试脚本和模块。 IntelliSense、Show-Command、代码片段、选项卡完成、语法着色、视觉调试和上下文相关的帮助等主要功能提供了丰富的脚本编写体验。
Using PowerShell.exe
PowerShell_ISE.exe 工具启动 Windows PowerShell ISE 会话。 使用 PowerShell_ISE.exe时,可以使用其可选参数在 Windows PowerShell ISE 中打开文件,或启动没有配置文件或多线程单元的 Windows PowerShell ISE 会话。
若要在命令提示符窗口、Windows PowerShell 或“ 开始” 菜单中启动 Windows PowerShell ISE 会话,请键入:
PowerShell_Ise.exe若要打开脚本(.ps1)、脚本模块(.psm1)、模块清单(.psd1)、XML 文件或 Windows PowerShell ISE 中的任何其他受支持的文件,请键入:
PowerShell_Ise.exe <filepath>在 Windows PowerShell 3.0 中,可以使用可选的 File 参数,如下所示:
PowerShell_Ise.exe -file <filepath>若要在没有 Windows PowerShell 配置文件的情况下启动 Windows PowerShell ISE 会话,请使用 NoProfile 参数。 ( NoProfile 参数是在 Windows PowerShell 3.0 中引入的。),键入:
PowerShell_Ise.exe -NoProfile若要查看 PowerShell_ISE.exe 帮助文件,请键入:
PowerShell_Ise.exe -help PowerShell_Ise.exe -? PowerShell_Ise.exe /?
Remarks
有关 PowerShell_ISE.exe 命令行参数的完整列表,请参阅 about_PowerShell_Ise.Exe。
有关启动 Windows PowerShell 的其他方法的信息,请参阅 启动 Windows PowerShell。
Windows PowerShell 在 Windows Server作系统的服务器核心安装选项上运行。 但是,由于 Windows PowerShell ISE 需要图形用户界面,因此它不会在 Server Core 安装上运行。