Title: File-Based Registry Support Needed for PowerShell · Issue #1187 · PowerShell/PowerShell · GitHub
Open Graph Title: File-Based Registry Support Needed for PowerShell · Issue #1187 · PowerShell/PowerShell
X Title: File-Based Registry Support Needed for PowerShell · Issue #1187 · PowerShell/PowerShell
Description: Overview In PowerShell repo, there is a need to decouple as much as possible from PowerShell's existing dependence on the Windows registry. This requirement is driven by a lack of a registry in non-Windows environments and a need to isol...
Open Graph Description: Overview In PowerShell repo, there is a need to decouple as much as possible from PowerShell's existing dependence on the Windows registry. This requirement is driven by a lack of a registry in non...
X Description: Overview In PowerShell repo, there is a need to decouple as much as possible from PowerShell's existing dependence on the Windows registry. This requirement is driven by a lack of a registry in...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1187
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"File-Based Registry Support Needed for PowerShell","articleBody":"# Overview\n\nIn PowerShell repo, there is a need to decouple as much as possible from PowerShell's existing dependence on the Windows registry. This requirement is driven by a lack of a registry in non-Windows environments and a need to isolate side-by-side instances of PowerShell from interfering with each other's operation.\n1. Two configuration file directories are needed\n 1. $PSHOME\\Configuration -- Holds HKLM registry values; \"System-wide\"\n 2. SpecialFolder.LocalApplicationData -- Holds HKCU registry values; \"per-user\"\n - Windows = %LOCALAPPDATA%\\PowerShell\\Configuration\n - non-Windows = ~/.config/PowerShell/Configuration\n2. Each registry key is a separate file\n 1. The file name is the key and the content is the value. All values are strings or easily converted to and from strings.\n 2. Preferred file format is JSON, but it may be unnecessary given one-key-per-file.\n 3. Positives\n 1. Mitigates multi-process reader & writer issues\n 2. Allows per-file access control\n 4. Negatives\n 1. More files to manage\n 2. May be unnecessary; no data to confirm whether it is an actual performance bottleneck\n# Values Needed:\n## PSModulePath\n\nExisting Key = HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Environment\nProposed value = %ProgramFiles%\\PowerShell\\Modules by default\n## DisablePromptToUpdateHelp\n\nExisting Key = HKLM\\SOFTWARE\\Microsoft\\PowerShell\nProposed value = Existing default. Probably \"0\"\n## PipeLineMaxStackSizeMB\n\nExisting Key = HKLM\\SOFTWARE\\Microsoft\\PowerShell\\1\\ShellIds\nProposed value = Existing default. Probably \"10\"\n## ConsolePrompting\n\nExisting Key = HKLM\\SOFTWARE\\Microsoft\\PowerShell\\1\\ShellIds\nProposed value = existing default. Probably \"1\"\n## ExecutionPolicy\n\nExisting Key = HKCU and HKLM\\SOFTWARE\\Microsoft\\PowerShell\\1\\ShellIds\\Microsoft.PowerShell\nProposed value = existing default execution policy\n## DefaultSourcePath\n\nExisting Key = HKCU and HKLM\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\UpdatableHelp\nProposed value = blank. This should be supported though\n### Note: Storage of machine-level and user-level environment variables is still an open topic. We can store them in files, but we might want to leave them as-is (written to registry) in Windows.\n# Tasks\n- [x] Merge portions of the prototype code and add it to the build\n- [x] Write new class for reading from and writing to JSON files\n- [x] Replace calls within PS code to use the new interface\n- [ ] Write tests and verify functionality\n","author":{"url":"https://github.com/mirichmo","@type":"Person","name":"mirichmo"},"datePublished":"2016-06-23T22:05:25Z","url":"https://github.com/PowerShell/PowerShell/issues/1187"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:26d0552e-448d-a341-4f07-e464344472c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8F4:3DBB2A:7E8DB:B09E6:6AFD7AA0 |
| html-safe-nonce | 7289ca209251defc1c6ed6d308810348d41151f131ccd48b401676fdde08e5a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEY0OjNEQkIyQTo3RThEQjpCMDlFNjo2QUZEN0FBMCIsInZpc2l0b3JfaWQiOiI1Mzg2NDMxMTA2MDQ2MDY1MzEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 138caf71b7e1392fcbf4e53194a4baf98869c2e6b5b9841536180df1a9ba6d30 |
| hovercard-subject-tag | issue:162034178 |
| 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/1187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0e6bf07d531334b9fb8bb7d52fadf07b76e0427d18bdb17526c01a640802b4e/PowerShell/PowerShell/issues/1187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0e6bf07d531334b9fb8bb7d52fadf07b76e0427d18bdb17526c01a640802b4e/PowerShell/PowerShell/issues/1187 |
| og:image:alt | Overview In PowerShell repo, there is a need to decouple as much as possible from PowerShell's existing dependence on the Windows registry. This requirement is driven by a lack of a registry in non... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mirichmo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| 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 | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width