Showing posts with label Microsoft PowerShell. Show all posts
Showing posts with label Microsoft PowerShell. Show all posts

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.



FREE Cybersecurity Certifications

Here's 15 FREE courses provided by the Qualys. The cybersecurity firm Qualys focuses on providing cloud-based security and compliance so...