ScriptBlockLogging
Overview
View the cachedGroupPolicySettings within PowerShell session
[ref].Assembly.GetType('System.Management.Automation.Utils').GetField('cachedGroupPolicySettings', 'NonPublic,Static').GetValue($null)
Disabling ScriptBlockLogging
Suspicious ScriptBlock Logging (Warning level)

Disabling Suspicious Warning Logging
Last updated