Windows PowerShell ISE是一个基于 GUI 的应用程序,用于运行和调试命令和脚本。如果您将它与Windows PowerShell进行比较,您会发现PowerShell ISE提供了许多Windows PowerShell所没有的高级功能。PowerShell ISE的图形用户界面使其对初学者更加友好。在本初学者指南中,我们将说明如何安装、卸载和使用Windows PowerShell ISE。
如何安装和卸载Windows PowerShell ISE
我们将解释以下安装和卸载Windows PowerShell ISE的方法:
- 通过Windows 可选功能(Windows Optional Features)安装PowerShell ISE。
- 通过Windows 可选(Windows Optional)功能卸载PowerShell 。
- 通过命令提示符(Command Prompt)安装PowerShell ISE。
- 通过命令提示符(Command Prompt)卸载PowerShell ISE。
1]通过Windows 可选(Windows Optional)功能安装 PowerShell ISE(Install PowerShell ISE)
默认情况下,Windows 10 预装了PowerShell ISE应用。但是如果你在你的电脑上没有找到它,你可以通过Windows Optional Features安装它。

以下步骤将帮助您安装和卸载Windows PowerShell ISE:
- 启动设置(Settings)应用程序并单击应用程序(Apps)。
- 单击左侧窗格中的应用程序和功能。(Apps & features)
- 您将在右侧窗格中看到一个名为Optional features的链接。(Optional features)点击它。
- 现在,单击添加功能(Add a feature)按钮。这将打开添加可选功能(Add an optional feature)窗口。
- 向下滚动列表并选择Windows PowerShell Integrated Scripting Environment,然后单击安装(Install)按钮。
安装完成后,您可以从“开始(Start)”菜单访问PowerShell ISE 。
2]通过Windows可选(Windows Optional)功能卸载PowerShell ISE(Uninstall PowerShell ISE)

以下步骤将帮助您使用Windows 可选功能卸载(Windows Optional)PowerShell ISE:
- 转到“Settings > Apps > Apps & features > Optional features”。
- 向下滚动(Scroll)列表并单击Windows PowerShell Integrated Scripting Environment 。
- 单击卸载(Uninstall)。
您必须等到卸载过程完成。
3]通过命令提示符(Command Prompt)安装 PowerShell ISE(Install PowerShell ISE)
要使用命令提示符(Command Prompt)安装Windows PowerShell ISE,首先,以管理员身份启动命令提示符(launch the Command Prompt as an administrator),然后将以下命令复制并粘贴到其中。完成后,按 Enter(Enter)。
DISM /Online /Add-Capability /CapabilityName:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
在安装过程完成之前,请不要关闭命令提示符。(Command Prompt)
4]通过命令提示符(Command Prompt)卸载PowerShell ISE(Uninstall PowerShell ISE)
以管理员身份启动命令提示符,复制以下命令并将其粘贴到那里。之后,按Enter。
DISM /Online /Remove-Capability /CapabilityName:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
在卸载完成之前不要中断卸载过程或关闭命令提示符。(Command Prompt)
阅读(Read):Windows PowerShell ISE 与 Windows PowerShell(Windows PowerShell ISE vs Windows PowerShell) – 有什么区别?
如何使用 Windows PowerShell ISE
要启动应用程序,请单击Windows 搜索(Windows Search)框,键入PowerShell ISE,然后单击Windows PowerShell ISE。如果要使用管理权限启动它,请右键单击它并选择Run as Administrator。

PowerShell ISE带有以下元素:
- 菜单栏
- 工具栏
- PowerShell 选项卡
- 脚本选项卡
- 控制台窗格
- 脚本窗格
- 状态栏
- 文本大小滑块
这些元素使用户可以轻松地运行、编辑和执行命令和脚本。让我们看看每个元素的功能:
1]菜单栏
顾名思义,PowerShell ISE的菜单栏由不同的菜单组成,包括File、Edit、Tools、View、Debug、Add-ons和Help。使用这些菜单按钮,您可以执行不同的任务、自定义ISE界面、调试命令或脚本等。
2]工具栏
与其他软件和应用程序一样,Windows PowerShell ISE还具有一个由不同工具组成的工具栏。其中一些工具包括:
- 新建脚本按钮
- 打开脚本按钮
- 保存脚本按钮
- 清除控制台窗格按钮
- (Start PowerShell)在单独的窗口按钮中启动 PowerShell等。
3] PowerShell选项卡
您可以在Windows PowerShell ISE(Windows PowerShell ISE)中创建多个选项卡。此功能允许您一次运行多个脚本和命令。要打开一个新选项卡,请转到“File > New PowerShell Tab”。或者,您也可以按键盘上的Ctrl + T键。
要关闭特定的PowerShell选项卡,请选择它并单击小十字(cross)图标,或者只需按Ctrl + W键。
4]脚本选项卡
您可以在每个PowerShell选项卡中创建多个脚本(Script)选项卡。这使您可以一次运行和编辑多个脚本。要打开新的脚本(Script)选项卡,请转到“File > New”或按键盘上的Ctrl + N键。
要关闭特定的脚本(Script)选项卡,请选择它并单击小十字(cross)图标。没有关闭脚本(Script)选项卡的键盘快捷键。
5]控制台窗格
它显示了您运行的脚本和命令的结果。除此之外,您还可以使用控制台窗格(Console Pane)来运行PowerShell命令。
6]脚本窗格
这是您可以编写和运行PowerShell脚本的空间。
7]状态栏
顾名思义,在这里,您可以查看您已执行的命令和脚本的状态。它告诉您命令或脚本是否已完成。
8]文本大小的滑块
它可以让您增加和减少屏幕上的文本大小。您会在PowerShell ISE(PowerShell ISE)的右下角找到它。
就是这样。
相关帖子(Related posts):
How to use Windows PowerShell ISE - Beginners Tutorial
Windows PowerShell ISE is a GUI-based application that is used to run and debug commands and scripts. If you compare it with Windows PowerShell, you will find that PowerShell ISE offers many advanced features which are not available in Windows PowerShell. The graphical user interface of PowerShell ISE makes it more user-friendly for beginners. In this beginner’s guide, we will explain how to install, uninstall, and use Windows PowerShell ISE.
How to install and uninstall Windows PowerShell ISE
We will explain the following methods to install and uninstall Windows PowerShell ISE:
- Installing PowerShell ISE via Windows Optional Features.
- Uninstalling PowerShell via Windows Optional features.
- Installing PowerShell ISE via Command Prompt.
- Uninstalling PowerShell ISE via Command Prompt.
1] Install PowerShell ISE via Windows Optional Features
By default, Windows 10 comes with a pre-installed PowerShell ISE app. But if you do not find it on your computer, you can install it through Windows Optional Features.

The following steps will help you install and uninstall Windows PowerShell ISE:
- Launch the Settings app and click Apps.
- Click Apps & features on the left pane.
- You will see a link named Optional features on the right pane. Click on it.
- Now, click on the Add a feature button. This will open the Add an optional feature window.
- Scroll down the list and select Windows PowerShell Integrated Scripting Environment, and click on the Install button.
After the installation gets completed, you can access PowerShell ISE from the Start menu.
2] Uninstall PowerShell ISE via Windows Optional Features

The following steps will help you uninstall PowerShell ISE using Windows Optional Features:
- Go to “Settings > Apps > Apps & features > Optional features.”
- Scroll down the list and click on the Windows PowerShell Integrated Scripting Environment.
- Click Uninstall.
You have to wait till the uninstallation process gets completed.
3] Install PowerShell ISE via Command Prompt
To install Windows PowerShell ISE using Command Prompt, first, launch the Command Prompt as an administrator, then copy and paste the following command into it. When you are done, hit Enter.
DISM /Online /Add-Capability /CapabilityName:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
Please do not close the Command Prompt till the installation process gets completed.
4] Uninstall PowerShell ISE via Command Prompt
Launch the command prompt as an administrator, copy the following command and paste it there. After that, press Enter.
DISM /Online /Remove-Capability /CapabilityName:Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
Do not interrupt the uninstallation process or close the Command Prompt before uninstallation gets finished.
Read: Windows PowerShell ISE vs Windows PowerShell – What is the difference?
How to use Windows PowerShell ISE
To launch the app, click on the Windows Search box, type PowerShell ISE, and click Windows PowerShell ISE. If you want to launch it with administrative rights, right-click on it and select Run as Administrator.

The PowerShell ISE comes with the following elements:
- Menu bar
- Toolbar
- PowerShell tabs
- Script tabs
- Console pane
- Script pane
- Status bar
- Text-size slider
These elements make it easy for a user to run, edit, and execute the commands and scripts. Let’s see the function of each of these elements:
1] Menu bar
As the name implies, the menu bar of PowerShell ISE consists of different menus including File, Edit, Tools, View, Debug, Add-ons, and Help. Using these menu buttons, you can perform different tasks, customize the ISE interface, debug commands or scripts, etc.
2] Toolbar
Like other software and apps, Windows PowerShell ISE also features a toolbar that consists of different tools. Some of these tools include:
- New Script button
- Open Script button
- Save Script button
- Clear Console Pane button
- Start PowerShell in a separate window button, and more.
3] PowerShell tabs
You can create multiple tabs in Windows PowerShell ISE. This feature lets you run multiple scripts and commands at a time. To open a new tab, go to “File > New PowerShell Tab.” Alternatively, you can also press the Ctrl + T keys on your keyboard.
To close a particular PowerShell tab, select it and click on the small cross icon, or simply press Ctrl + W keys.
4] Script tab
You can create multiple Script tabs in each PowerShell tab. This lets you run and edit more than one script at a time. To open a new Script tab, go to “File > New” or press Ctrl + N keys on your keyboard.
To close a specific Script tab, select it and click on the small cross icon. There is no keyboard shortcut to close the Script tabs.
5] Console Pane
It shows the results of the scripts and commands you run. Apart from that, you can also use Console Pane to run PowerShell commands.
6] Script Pane
This is the space where you can write and run PowerShell scripts.
7] Status bar
As the name implies, here, you can view the status of the commands and scripts that you have executed. It tells you whether the commands or scripts are completed or not.
8] Text-size Slider
It lets you increase and decrease the text size on the screen. You will find it at the bottom right corner of the PowerShell ISE.
That’s it.
Related posts: