Title: Start-Process fails to launch new powershell.exe instance with -UseNewEnvironment switch · Issue #3545 · PowerShell/PowerShell · GitHub
Open Graph Title: Start-Process fails to launch new powershell.exe instance with -UseNewEnvironment switch · Issue #3545 · PowerShell/PowerShell
X Title: Start-Process fails to launch new powershell.exe instance with -UseNewEnvironment switch · Issue #3545 · PowerShell/PowerShell
Description: Steps to reproduce I dont know why would anyone do this, but here it goes: you cannot launch another powershell.exe using Start-Process cmdlet with -UseNewEnvironment switch. Windows PowerShell: Start-Process -FilePath C:\Windows\System3...
Open Graph Description: Steps to reproduce I dont know why would anyone do this, but here it goes: you cannot launch another powershell.exe using Start-Process cmdlet with -UseNewEnvironment switch. Windows PowerShell: St...
X Description: Steps to reproduce I dont know why would anyone do this, but here it goes: you cannot launch another powershell.exe using Start-Process cmdlet with -UseNewEnvironment switch. Windows PowerShell: St...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3545
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start-Process fails to launch new powershell.exe instance with -UseNewEnvironment switch","articleBody":"Steps to reproduce\r\n------------------\r\nI dont know why would anyone do this, but here it goes: you cannot launch another `powershell.exe` using `Start-Process` cmdlet with `-UseNewEnvironment` switch.\r\n\r\nWindows PowerShell:\r\n```\r\nStart-Process -FilePath C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoNewWindow -UseNewEnvironment\r\n```\r\n\r\nPowerShell Core (Debug build):\r\n```\r\nStart-Process -FilePath .\\powershell.exe -NoNewWindow -UseNewEnvironment\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nA new instance of powershell.exe console should start.\r\n\r\nActual behavior\r\n---------------\r\nWindows PowerShell outputs error and dies:\r\n```\r\nInternal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d.\r\n```\r\n\r\nPowerShell Core (Debug build) outputs more errors + assert message and dies:\r\n```\r\nError resolving full path []\r\nError resolving full path []\r\nPowerShell\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nThe shell cannot be started. A failure occurred during initialization:\r\nASSERT: caller makes sure it's not null or empty\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 5.1.14409.1005\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.14409.1005\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-alpha\r\nGitCommitId v6.0.0-alpha.18-9-g8d4db01a5d4b5dcd981ef216d3d7f24b484c7c60-dirty\r\nWSManStackVersion 3.0\r\nCLRVersion\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 3.0.0.0\r\nPSRemotingProtocolVersion 2.3\r\nPSEdition Core\r\nSerializationVersion 1.1.0.1\r\n```","author":{"url":"https://github.com/0xfeeddeadbeef","@type":"Person","name":"0xfeeddeadbeef"},"datePublished":"2017-04-12T19:58:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3545/PowerShell/issues/3545"}
| 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:623165d9-075a-0d06-1629-f46d92c728c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADE2:F717:E9E593:13ED117:6A55BA6E |
| html-safe-nonce | 078af76ea70f60d0e26f7d4c59f62883566d97c5c0df9090819f15047e0bf671 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREUyOkY3MTc6RTlFNTkzOjEzRUQxMTc6NkE1NUJBNkUiLCJ2aXNpdG9yX2lkIjoiNDc1NDg5NjU3NjUwNTU1OTY2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b676338f8d4091e13919b9e7f868c8b4e9e074b5f5442ff6e3e4564686d95fe |
| hovercard-subject-tag | issue:221373563 |
| 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/3545/issue_layout |
| twitter:image | https://opengraph.githubassets.com/465af84332cf4b97bcc943908bc51a1d38b563e02b66b01057c7bf79afc0304b/PowerShell/PowerShell/issues/3545 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/465af84332cf4b97bcc943908bc51a1d38b563e02b66b01057c7bf79afc0304b/PowerShell/PowerShell/issues/3545 |
| og:image:alt | Steps to reproduce I dont know why would anyone do this, but here it goes: you cannot launch another powershell.exe using Start-Process cmdlet with -UseNewEnvironment switch. Windows PowerShell: St... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 0xfeeddeadbeef |
| 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 | 64b9ae238e18eb87ead1f9fe37a7cc81d67d85aa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width