-
Notifications
You must be signed in to change notification settings - Fork 8.1k
remove -computer parameter from get-process #4960
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
remove -computer parameter from get-process #4960
Conversation
|
Although |
|
We don't have quorum with the @PowerShell/powershell-committee today, but I'm formally acking that I'm okay with this one. |
|
I'm continuing to use WMI/RPC in a corporate environment. |
|
@iSazonov corefx has this in their 2.1.0 milestone so it won't be fixed by the time we get to final. If PSRP is allowed in your environment, you can always use |
|
@SteveL-MSFT Does it make sense to do |
|
It's certainly something we could look at. Perhaps you could open an new issue to track it. |
|
@PowerShell/powershell-committee reviewed this and agreed to remove the |
|
Should we be consistency and remove the parameter from all cmslets forcing users to use PSRemoting? |
|
@iSazonov it looks like you enumerated the Windows PowerShell cmdlets, but yes, we should remove it from the other cmdlets except the ones specific to remoting. |
|
@anmenaga since this was approved by Committee to proceed, can you review? |
anmenaga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks ok;
But looking that there is no corresponding test change, it feels strange that there is no existing test for "get-process -computer".
Maybe it is a good idea to run feature tests on this change to be sure that tests won't break...
f7f9eb6 to
09091cf
Compare
|
@anmenaga pretty sure this isn't being used in our tests at all since I found this via code coverage analysis, but will run feature tests anyways |
adityapatwardhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
09091cf to
151d078
Compare
|
@adityapatwardhan can we merge? |
Change removes redundant code from ProcessBaseCommand.AllProcesse that was left after existing functionality was removed in PowerShell#4960.
Due to bug https://github.com/dotnet/corefx/issues/24357 [Process]::GetProcesses(computer) returns local processes. Since this previously relied on dotnet remoting, I don't think we should support this and users should use PSRP instead.