Title: Logging of script block execution cannot be enabled on Unix · Issue #5695 · PowerShell/PowerShell · GitHub
Open Graph Title: Logging of script block execution cannot be enabled on Unix · Issue #5695 · PowerShell/PowerShell
X Title: Logging of script block execution cannot be enabled on Unix · Issue #5695 · PowerShell/PowerShell
Description: 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 s...
Open Graph Description: PowerShell checks whether to log script block activities in ShouldLogScriptBlockActivity, which query Registry on windows to get the configuration via GetGroupPolicySetting. However, GetGroupPolicy...
X Description: PowerShell checks whether to log script block activities in ShouldLogScriptBlockActivity, which query Registry on windows to get the configuration via GetGroupPolicySetting. However, GetGroupPolicy...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5695
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Logging of script block execution cannot be enabled on Unix","articleBody":"PowerShell checks whether to log script block activities in [`ShouldLogScriptBlockActivity`](https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs#L1478), which query Registry on windows to get the configuration via [`GetGroupPolicySetting`](https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/Utils.cs#L527). However, `GetGroupPolicySetting` does nothing on Unix, and thus script block activity logging cannot be enabled on Unix.\r\n\r\nA potential fix is to make PowerShell checks against an entry in `pwsh.runtimeconfig.json`.","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2017-12-15T00:27:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5695/PowerShell/issues/5695"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:67f02673-2496-2750-864e-55306a2f8c00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7A6:7C5C7:D02818:1190122:6A556075 |
| html-safe-nonce | 84827dd3dd489a2c75265c96a2bc14574baf444a942d1423a3abd84c5ed68e94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0E2OjdDNUM3OkQwMjgxODoxMTkwMTIyOjZBNTU2MDc1IiwidmlzaXRvcl9pZCI6IjMzMjI5MjM2ODA4MDg2NTcwMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 470542549a1a3e403f3d77606ecae3b5a067e8c8a7bd0dc36021acaa85963546 |
| hovercard-subject-tag | issue:282283083 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5695/issue_layout |
| twitter:image | https://opengraph.githubassets.com/886547b1d7bd7c1fa28f920b77757dbe95d735772cc705d75d5073b8253b0c74/PowerShell/PowerShell/issues/5695 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/886547b1d7bd7c1fa28f920b77757dbe95d735772cc705d75d5073b8253b0c74/PowerShell/PowerShell/issues/5695 |
| og:image:alt | PowerShell checks whether to log script block activities in ShouldLogScriptBlockActivity, which query Registry on windows to get the configuration via GetGroupPolicySetting. However, GetGroupPolicy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8201d0b7bc32164c4662de52242e463a356df543 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width