-
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
7.4.0 Start-Process with -PassThru & -RedirectStandardOutput does not return the process object completely ( properties like Exitcode ) #20716
Comments
Good find, but it is a duplicate of: See also: In light of the recently introduced bot action of closing old posts that haven't had activity in a while, it may be worth keeping this one open, however. |
Caching the Handle seems to work. This workaround works: I left -Wait away. Cached the handle and then using the System.Diagnostics.Prccess WaitOfExit method. Name : |
Good to know a workaround. Just to spell it out: it won't work if |
I faced the same problem, thanks for your workaround @derkveenhof |
Can also confirm I've seen the same issue. |
+1 |
Same issue here, please provide a fix |
A fix may land in v7.4.1 (the PR mentions only the related #20400 issue): |
This issue has been marked as fixed and has not had any activity for 1 day. It has been closed for housekeeping purposes. |
📣 Hey @derkveenhof, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
Prerequisites
Steps to reproduce
When i use Start-Process with -PassThru & -RedirectStandardOutput , the process object is not returned completely. This has been since 7.4.0
Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: