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
{{ message }}
Repository navigation
Logging of script block execution cannot be enabled on Unix #5695
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.
Activity
dantraMSFT commentedon Jan 31, 2018
Reopened since the change causes all analytic events to be logged unconditionally on Linux.