-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS v7.4.1 breaks passing credentials to start-process #21073
Comments
Confirmed I'm experiencing the same issue after upgrading to v7.4.1. Attempting to Start-Process with -Credential fails with an 'Access is denied' error.
|
@CodeCyclone could this be introduced by the code changes in 20749 or 20866 ? Thanks! |
Not sure if subscribing counts as a 'vote', so I'll add that I recently upgraded and am experiencing the same: $PSVersionTable
$cred = Get-Credential someValidCredential
Start-Process -Credential $cred -FilePath notepad.exe
Get-Error
|
Same here - please fix! |
I confirm, I too am having the same problem. |
I just ran into this issue as well. Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0 I tried using PowerShell 7.5-Preview2 and had the same |
It is really disappointing that nothing is happening here 😞 |
SAME! I was hoping this would be a quick and easy .2 fix, but I guess not? This is starting to impact our daily workloads as we have PS modules that require PowerShell 7 to function, but not being able to pass credentials to Start-Process is breaking all of that. |
+1 |
It is impacting our workflows as well. After 2 months not even a bug tag is assigned on this issue. |
Still no progress, this is halting our workflows quite badly. |
What makes things worse for me is that with 7.4.1 this bug is fixed: So both versions, 7.4.0 and 7.4.1, have a bug that is impacting my daily work 😒 |
Same issue here. I used this functionality on a daily basis, so pretty impactful. |
I've opened #21393 which will treat the exception as a warning allowing people to still continue to use the
If you are seeing this exception but do not fit into the above conditions please let me know and I'll have to do some further investigation to see what is happening. A workaround is to use the Process type directly which should support pretty much all of the same scenarios that If you are interesting in 3rd party modules I've written ProcessEx which exposes a few more features not found in |
📣 Hey @RaZz85, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
Prerequisites
Steps to reproduce
Since updating to 7.4.1, it is no longer possible to pass credentials through to start-process. Running as admin makes no difference.
Expected behavior
mstsc connects to myrdpserver with the provided credentials
Actual behavior
Start-Process: Access is denied.
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: