Skip to content

The Windows PowerShell 2.0 feature must be disabled on the system.

An XCCDF Rule

Description

Windows PowerShell 5.0 added advanced logging features which can provide additional detail when malware has been run on a system. Disabling the Windows PowerShell 2.0 mitigates against a downgrade attack that evades the Windows PowerShell 5.0 script block logging feature.

ID
SV-253285r958478_rule
Version
WN11-00-000155
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

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