SV-226054r569184_rule
V-226054
SRG-OS-000042-GPOS-00020
WN12-00-000210
CAT II
10
Configure the following registry value as specified.
Registry Hive: HKEY_LOCAL_MACHINE
Registry Path: \SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging\
Value Name: EnableScriptBlockLogging
Value Type: REG_DWORD
Value: 0x00000001 (1)
Administrative templates from later versions of Windows include a group policy setting for this. Configure the policy value for Computer Configuration >> Administrative Templates >> Windows Components >> Windows PowerShell >> "Turn on PowerShell Script Block Logging" to "Enabled".
Install patch KB3000850 on Windows 2012 R2 or KB3119938 on Windows 2012 on systems with PowerShell 4.0.
PowerShell 5.x does not require the installation of an additional patch.
If the following registry value does not exist or is not configured as specified, this is a finding.
Registry Hive: HKEY_LOCAL_MACHINE
Registry Path: \SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging\
Value Name: EnableScriptBlockLogging
Value Type: REG_DWORD
Value: 0x00000001 (1)
PowerShell 4.0 requires the installation of patch KB3000850 on Windows 2012 R2 or KB3119938 on Windows 2012.
If the patch is not installed on systems with PowerShell 4.0, this is a finding.
PowerShell 5.x does not require the installation of an additional patch.
V-226054
False
WN12-00-000210
If the following registry value does not exist or is not configured as specified, this is a finding.
Registry Hive: HKEY_LOCAL_MACHINE
Registry Path: \SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging\
Value Name: EnableScriptBlockLogging
Value Type: REG_DWORD
Value: 0x00000001 (1)
PowerShell 4.0 requires the installation of patch KB3000850 on Windows 2012 R2 or KB3119938 on Windows 2012.
If the patch is not installed on systems with PowerShell 4.0, this is a finding.
PowerShell 5.x does not require the installation of an additional patch.
M
4217