remove -computer parameter from get-process - #4960
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
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. |
|
Ilya (@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 |
|
Steve Lee (@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? |
|
Ilya (@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. |
|
Ilya (@iSazonov) I created #5090 as I think only the *-Service ones need it removed, the remaining ones are ok. |
|
Andrew (@anmenaga) since this was approved by Committee to proceed, can you review? |
Andrew (anmenaga)
left a comment
There was a problem hiding this comment.
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
|
Andrew (@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 |
Aditya Patwardhan (adityapatwardhan)
left a comment
There was a problem hiding this comment.
LGTM
09091cf to
151d078
Compare
|
Aditya Patwardhan (@adityapatwardhan) can we merge? |
Change removes redundant code from ProcessBaseCommand.AllProcesse that was left after existing functionality was removed in PowerShell#4960.
remove -computer support since corefx Process.GetProcesses(computer) returns local processes
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.