Title: System32 module path is added repeatedly in subprocesses · Issue #7327 · PowerShell/PowerShell · GitHub
Open Graph Title: System32 module path is added repeatedly in subprocesses · Issue #7327 · PowerShell/PowerShell
X Title: System32 module path is added repeatedly in subprocesses · Issue #7327 · PowerShell/PowerShell
Description: Steps to reproduce > $env:PSModulePath -split ';' C:\Users\roholt\Documents\PowerShell\Modules C:\Program Files\PowerShell\Modules c:\program files\powershell\6-preview\Modules C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules > & "$PSH...
Open Graph Description: Steps to reproduce > $env:PSModulePath -split ';' C:\Users\roholt\Documents\PowerShell\Modules C:\Program Files\PowerShell\Modules c:\program files\powershell\6-preview\Modules C:\WINDOWS\system32\...
X Description: Steps to reproduce > $env:PSModulePath -split ';' C:\Users\roholt\Documents\PowerShell\Modules C:\Program Files\PowerShell\Modules c:\program files\powershell\6-preview\Modules C:\WINDOW...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7327
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"System32 module path is added repeatedly in subprocesses","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\n- Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n- Fill out the following repro template:\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n-->\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n> $env:PSModulePath -split ';'\r\nC:\\Users\\roholt\\Documents\\PowerShell\\Modules\r\nC:\\Program Files\\PowerShell\\Modules\r\nc:\\program files\\powershell\\6-preview\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\n\r\n> & \"$PSHOME\\pwsh.exe\"\r\n> $env:PSModulePath -split ';'\r\nC:\\Users\\roholt\\Documents\\PowerShell\\Modules\r\nC:\\Program Files\\PowerShell\\Modules\r\nc:\\program files\\powershell\\6-preview\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\n\r\n> & \"PSHOME\\pwsh.exe\"\r\n> $env:PSModulePath -split ';'\r\nC:\\Users\\roholt\\Documents\\PowerShell\\Modules\r\nC:\\Program Files\\PowerShell\\Modules\r\nc:\\program files\\powershell\\6-preview\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\n\r\n> exit\r\n> $env:PSModulePath -split ';'\r\nC:\\Users\\roholt\\Documents\\PowerShell\\Modules\r\nC:\\Program Files\\PowerShell\\Modules\r\nc:\\program files\\powershell\\6-preview\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\n\r\n> exit\r\n> $env:PSModulePath -split ';'\r\nC:\\Users\\roholt\\Documents\\PowerShell\\Modules\r\nC:\\Program Files\\PowerShell\\Modules\r\nc:\\program files\\powershell\\6-preview\\Modules\r\nC:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\r\n```\r\n\r\nExpected behavior\r\n------------------\r\n\r\nSystem32 module paths don't build up.\r\n\r\nActual behavior\r\n---------------\r\n\r\nSystem32 module paths keep getting tacked onto the end of the the PSModulePath.\r\n\r\nPros:\r\n * You always know how many PowerShells deep you are\r\n\r\nCons:\r\n * This is broken\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.1.0-preview.4\r\nPSEdition Core\r\nGitCommitId 6.1.0-preview.4\r\nOS Microsoft Windows 10.0.18200\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n\r\n```\r\n","author":{"url":"https://github.com/rjmholt","@type":"Person","name":"rjmholt"},"datePublished":"2018-07-20T22:02:10Z","url":"https://github.com/PowerShell/PowerShell/issues/7327"}
| 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:79f2d49a-bb80-b925-1b29-371aa42ddea1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADE4:2EAC7E:14592B:1B5FE8:6AFD413E |
| html-safe-nonce | 30c1155f00ca04c8b3abb23d4414003940286f55fb9038eaea3867c575f34e9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREU0OjJFQUM3RToxNDU5MkI6MUI1RkU4OjZBRkQ0MTNFIiwidmlzaXRvcl9pZCI6IjgyODYyODQxNzY5NDkwNjgwOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7f508f0b1acd65441a605e2cb4ac77d5fb43845626de77adb93a8c39cce897b2 |
| hovercard-subject-tag | issue:343260188 |
| 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/7327/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2295df719bb447ec324aa6db52331a7d218de27f5f5b762ca8a4a319d7e24550/PowerShell/PowerShell/issues/7327 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2295df719bb447ec324aa6db52331a7d218de27f5f5b762ca8a4a319d7e24550/PowerShell/PowerShell/issues/7327 |
| og:image:alt | Steps to reproduce > $env:PSModulePath -split ';' C:\Users\roholt\Documents\PowerShell\Modules C:\Program Files\PowerShell\Modules c:\program files\powershell\6-preview\Modules C:\WINDOWS\system32\... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjmholt |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width