Monday, 28 November 2022

How to disable Windows PowerShell 2.0

There are multiple ways to disable the Windows PowerShell 2.0, I guess most of us know how to disable it using Windows feature turn on/off method so in this blog, I am going to demonstrate using command.

To check if PowerShell 2.0 Enabled:

1. DISM Command: DISM /online /get-features /format:table (or below command)
2. Get-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root

Please using following command to Disable the Windows PowerShell 2.0

1. Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root (or below command)
2. DISM /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root"

Make sure you run the command as Administrator.

This command should turn off both "MicrosoftWindowsPowerShellV2Root" and "MicrosoftWindowsPowerShellV2," which correspond to "Windows PowerShell 2.0" and "Windows PowerShell 2.0 Engine" in the "Turn Windows features on or off" dialogue.



No comments:

Post a Comment

What's new in Microsoft Intune: April 2025

Microsoft Intune's April 2025 release introduces several enhancements aimed at improving device management and security: Custom Naming ...