PowerShell ISE 是 Windows PowerShell 的主應用程式,可讓您在單一 Windows 圖形使用者介面中執行命令及撰寫、測試及偵錯腳本。
Windows PowerShell ISE 包含功能表欄、Windows PowerShell 頁籤、工具列、腳本頁籤、腳本窗格、主控臺窗格、狀態列、文字大小滑桿和說明。 功能表欄 功能表欄包含[檔案]、[編輯]、[檢視]、[工具]、[偵錯]、[附加元件]和 [說明] 功能表。 功能表上的按鈕可讓您執行與在 Windows PowerShell ISE 中撰寫...
PowerShell PowerShell_Ise.exe 若要開啟腳本 (.ps1)、腳本模組 (.psm1)、模組指令清單 (.psd1)、XML 檔案,或 Windows PowerShell ISE 中任何其他支援的檔案,請輸入: PowerShell PowerShell_Ise.exe <filepath> 在Windows PowerShell 3.0 中,您可以使用選擇性的File参数,如下所示: ...
在“Windows 8.1、Windows 8、Windows Server 2012 R2”和“Windows Server 2012”中,在“开始”屏幕上,键入“PowerShell_ISE”,然后单击“PowerShell_ISE”或“Windows PowerShell ISE”。 在Windows Server 2012 R2 和 Windows Server 2012 中,在 服务器管理器 的“工具”菜单上,单击“Windo...
powershell_ise-File"File1.ps1,File2.ps1,File3.xml". Windows PowerShell 中允许文件名之间的空格,但其他程序(例如 Cmd.exe)可能无法正确解释这些空格。 可以使用此参数打开任何文本文件,包括 Windows PowerShell 脚本文件和 XML 文件。 -MTA 使用多线程单元启动 Windows PowerShell ISE。 此参数在 Windows Powe...
Using PowerShell_ISE.exe You can usePowerShell_ISE.exeto start and end a Windows PowerShell session as follows: To start a Windows PowerShell ISE session, in a Command Prompt window, in Windows PowerShell, or at the Start menu, type: ...
about_PowerShell.exe 显示有关 PowerShell.exe 命令行工具的帮助。 about_PowerShell_Ise.exe 显示有关 PowerShell_ISE.exe 命令行工具的帮助。 about_Preference_Variables 介绍自定义 Windows PowerShell 的首选项变量。 about_Profiles 说明如何创建和使用 Windows PowerShell 配置文件。
从附带的代码下载中下载并解压缩脚本。 运行应用程序的最简单方法是使用 ISE。 在 Windows 7 上,可以单击“开始”,然后键入“ISE”。 (注意:不能通过双击操作运行 PowerShell 脚本(具有 .ps1 文件扩展名)。 运行示例脚本的最简单方法是启动 ISE,并使用“文件”|“打开”来打开脚本文件。) ...
与Windows PowerShell 的调试功能集成。 备注 Windows PowerShell ISE 在 Windows OS 上可用,但它不适用于 PowerShell 6 及更新版本。 为获取类似体验,可以将 Visual Studio Code (VS Code) 与 PowerShell 扩展配合使用。 你将在本模块的下一单元中了解更多相关信息。
本文介绍如何使用 Windows PowerShell 集成脚本环境(ISE)视觉调试功能在本地计算机上调试脚本。 如何管理断点 断点是脚本中你想要操作暂停的指定位置,这样你可以检查变量的当前状态和脚本运行的环境。一旦你的脚本被断点暂停,你可以在控制台窗格中运行命令来检查你的脚本状态。 可以输出变量...