You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PowerShell checks whether to log script block activities in ShouldLogScriptBlockActivity, which query Registry on windows to get the configuration via GetGroupPolicySetting. However, GetGroupPolicySetting does nothing on Unix, and thus script block activity logging cannot be enabled on Unix.
A potential fix is to make PowerShell checks against an entry in pwsh.runtimeconfig.json.
PowerShell checks whether to log script block activities in
ShouldLogScriptBlockActivity, which query Registry on windows to get the configuration viaGetGroupPolicySetting. However,GetGroupPolicySettingdoes nothing on Unix, and thus script block activity logging cannot be enabled on Unix.A potential fix is to make PowerShell checks against an entry in
pwsh.runtimeconfig.json.