Share via


PowerShell_ise

Windows PowerShell 整合式指令碼環境 (ISE) 是圖形化主應用程式,可讓您在圖形輔助環境中讀取、寫入、執行、偵錯及測試指令碼和模組。 IntelliSense、Show-Command、程式碼片段、Tab 鍵自動完成、語法著色、視覺偵錯和即時線上説明等重要功能可提供豐富的編寫指令碼體驗。

使用 PowerShell.exe

PowerShell_ISE.exe 工具會啟動 Windows PowerShell ISE 工作階段。 當您使用 PowerShell_ISE.exe 時,可以使用其選擇性參數在 Windows PowerShell ISE 中開啟檔案,或啟動不含設定檔或具有多執行緒 Apartment 的 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 說明檔,請輸入:

    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 作業系統的 Server Core 安裝選項上執行。 不過,由於 Windows PowerShell ISE 需要圖形使用者介面,因此它不會在 Server Core 安裝上執行。