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: 2019: https://www.stigviewer.com/stig/microsoft_windows_server_2019/2022-03-01/finding/V-205685
2016: https://www.stigviewer.com/stig/windows_server_2016/2019-01-16/finding/V-73301
Stig Desktop: https://www.stigviewer.com/stig/windows_10/2019-01-04/finding/V-70637