PowerShell: v2 should not be installed / enabled

f69ae077-386f-4543-9036-30e5b3377f62

Remediation

Windows Server Family:
* Start "Server Manager".
* Select the server with the feature.
* Scroll down to "ROLES AND FEATURES" in the right pane.
* Select "Remove Roles and Features" from the drop-down "TASKS" list.
* Select the appropriate server on the "Server Selection" page and click "Next".
* Deselect "Windows PowerShell 2.0 Engine" under "Windows PowerShell" on the "Features" page.
* Click "Next" and "Remove" as prompted.

Desktop:
Disable "Windows PowerShell 2.0" on the system.

Run "Windows PowerShell" with elevated privileges (run as administrator).
Enter the following:
Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root

This command should disable both "MicrosoftWindowsPowerShellV2Root" and "MicrosoftWindowsPowerShellV2" which correspond to "Windows PowerShell 2.0" and "Windows PowerShell 2.0 Engine" respectively in "Turn Windows features on or off".

Alternately:
Search for "Features".
Select "Turn Windows features on or off".
De-select "Windows PowerShell 2.0".

Also, from powershell command line (running as Administrator) run:
Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root

STIG
Server
2022: https://system32.eventsentry.com/stig/viewer/V-254278
2019: https://system32.eventsentry.com/stig/viewer/V-205685

Desktop
W11: https://system32.eventsentry.com/stig/viewer/V-253285
W10: https://system32.eventsentry.com/stig/viewer/V-220728