閱讀英文

共用方式為


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


其他資源

事件

Windows Server Summit

4月29日 下午2時 - 4月30日 下午7時

加入最終的 Windows Server 虛擬活動 4 月 29-30 日,以取得深入探討的技術研討會,並與Microsoft工程師實時問答。

立即註冊