How to Enable or Install Windows PowerShell 2.0 in Windows 11
Although Windows 11 includes newer versions of PowerShell, Microsoft has kept PowerShell 2.0 available as a legacy feature for compatibility purposes. Some organizations still rely on scripts that were written specifically for PowerShell 2.0, and these scripts may fail to run in newer versions without modifications.
However, due to security vulnerabilities present in PowerShell 2.0, Microsoft disabled it by default. Enabling it should only be done if necessary and ideally only in environments where older scripts cannot be updated.
PowerShell 2.0 can be installed through the Optional Features section of Windows. This feature is part of the Windows PowerShell 2.0 Engine, which allows the system to run scripts built on the earlier version of the PowerShell framework.
The process does not require downloading external files or software. Everything needed is already included within the Windows 11 installation package.
In this guide, I will explains you how to enable or install Windows PowerShell 2.0 in Windows 11 in detail!
So let’s get started!
How to Enable or Install Windows PowerShell 2.0 in Windows 11

To enable Windows PowerShell 2.0 in Windows 11, open Windows Optional Features, locate Windows PowerShell 2.0, enable the feature, and restart the computer if required. This installs the legacy PowerShell environment needed to run older scripts and applications that depend on PowerShell 2.0.
Here’s the complete process to enable Windows PowerShell 2.0.
Step 1: Open the Windows Search Bar
The first step is to access the Windows search function, which allows you to locate system settings and administrative tools quickly.
Click on the Start Menu located on the taskbar or press the Windows key on your keyboard. Once the Start Menu opens, look for the search bar at the top.
Type Windows Features into the search field. Windows will display a result labeled Turn Windows features on or off. This setting allows you to enable or disable built-in Windows components.
Click on this option to open the Windows Features dialog box.
This window contains a list of optional Windows components that can be enabled or disabled depending on system requirements.
Step 2: Locate Windows PowerShell 2.0
After opening the Windows Features window, you will see a long list of available Windows components.
Scroll through the list until you find the option labeled Windows PowerShell 2.0. This feature contains the legacy PowerShell engine required to run scripts that depend on version 2.0.
You may notice that this option has two components inside it.
The main component is Windows PowerShell 2.0 Engine. This is the essential part required for running PowerShell 2.0 scripts.
If the checkbox next to Windows PowerShell 2.0 is unchecked, it means the feature is currently disabled on your system.
Step 3: Enable Windows PowerShell 2.0 Engine
Once you find the Windows PowerShell 2.0 option, click the checkbox next to it.
When you enable this feature, Windows automatically selects the Windows PowerShell 2.0 Engine, which activates compatibility support for legacy scripts.
After selecting the checkbox, click the OK button at the bottom of the window.
Windows will now begin applying the required changes. The system may take a few moments to enable the feature because it needs to configure system components.
In most cases, the installation completes quickly since the feature is already included in the operating system.
Step 4: Wait for Windows to Apply the Changes
After clicking OK, Windows will display a progress window showing the message Searching for required files or Applying changes.
During this stage, Windows activates the necessary system files required for PowerShell 2.0 compatibility.
You should wait until the process completes. Do not close the window while the installation is in progress.
Once finished, Windows will display a message confirming that the requested changes have been completed successfully.
Step 5: Restart Your Computer if Required
In some situations, Windows may ask you to restart the computer to finish installing the feature.
If you see a prompt requesting a restart, click Restart now.
Restarting ensures that the PowerShell 2.0 Engine loads properly and integrates with the system environment.
After your computer restarts, the feature will be fully enabled.
Step 6: Verify That PowerShell 2.0 Is Installed
After enabling the feature, it is important to verify that PowerShell 2.0 is available on your system.
Open Windows PowerShell by typing PowerShell in the Start Menu search bar and clicking on the result.
Once PowerShell opens, type the following command:
$PSVersionTable
Press Enter.
This command displays information about the current PowerShell environment, including the installed version.
If PowerShell 2.0 compatibility is enabled, you will be able to run scripts designed for that version.
Step 7: Run PowerShell in Version 2.0 Mode
If you specifically need to run PowerShell 2.0, you can launch it using a command.
Open Run by pressing Windows + R on your keyboard.
Type the following command:
powershell.exe -version 2
Press Enter.
This command starts PowerShell using the version 2.0 engine, allowing you to execute scripts designed for older environments.
This is particularly useful when testing legacy scripts or troubleshooting compatibility issues.
FAQs
Is Windows PowerShell 2.0 available in Windows 11?
Yes, Windows PowerShell 2.0 is still available in Windows 11 as an optional feature. However, it is disabled by default because it contains outdated components that may present security risks.
Why would someone enable PowerShell 2.0?
Users typically enable PowerShell 2.0 to run legacy scripts or applications that were developed specifically for that version and may not function properly in newer versions of PowerShell.
Is PowerShell 2.0 safe to use?
PowerShell 2.0 has known security vulnerabilities and lacks many modern protections. It should only be enabled when necessary and preferably used in controlled environments.
Can PowerShell 2.0 be removed after enabling it?
Yes, you can disable Windows PowerShell 2.0 at any time by going back to the Windows Features window and unchecking the option.
What version of PowerShell comes with Windows 11 by default?
Windows 11 typically includes Windows PowerShell 5.1 as the default version, and users can also install the modern cross-platform PowerShell 7 separately.
Do all scripts work in PowerShell 2.0?
No. Scripts created for newer versions of PowerShell may use commands and modules that are not supported in PowerShell 2.0.
Is PowerShell 7 the same as Windows PowerShell?
No. PowerShell 7 is a modern version built on the .NET platform and designed to be cross-platform, while Windows PowerShell is the traditional version included with Windows.
