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