PowerShell_ise

Windows PowerShell 集成脚本环境 (ISE) 是一款图形主机应用程序,让你可以在直观的图形辅助环境中读取、编写、运行、调试和测试脚本与模块。 IntelliSense、Show-Command、片段、Tab 补齐、语法着色、可视调试和上下文相关帮助等主要功能提供了丰富的脚本编写体验。

使用 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
    
  • 若要在 Windows PowerShell ISE 中打开脚本 (.ps1)、脚本模块 (.psm1)、模块清单 (.psd1)、XML 文件或任何其他受支持的文件,请键入:

    PowerShell_Ise.exe <filepath>
    

    在 Windows PowerShell 3.0 中,可以使用可选的 File 参数,如下所示

    PowerShell_Ise.exe -file <filepath>
    
  • 若要在没有 Windows PowerShell 配置文件的情况下启动 Windows PowerShell ISE 会话,请使用 NoProfile 参数。 (Windows PowerShell 3.0 中引入了 NoProfile 参数。),键入

    PowerShell_Ise.exe -NoProfile
    
  • 若要查看 PowerShell_ISE.exe 帮助文件,请键入:

    PowerShell_Ise.exe -help
    PowerShell_Ise.exe -?
    PowerShell_Ise.exe /?
    

备注

  • 有关 PowerShell_ISE.exe 命令行参数的完整列表,请参阅 about_PowerShell_Ise.Exe

  • 有关启动 Windows PowerShell 的其他方法的信息,请参阅启动 Windows PowerShell

  • Windows PowerShell 在 Windows Server 操作系统的服务器核心安装选项上运行。 但是,由于 Windows PowerShell ISE 需要图形用户界面,因此它不会在服务器核心安装上运行。