In Powershell 5.1, it is possible to manage services remotely using the -ComputerName flag. This functionality is not present in the Powershell 7 release
Steps to reproduce
get-service -computername [REMOTE COMPUTER NAME GOES HERE]
Expected behavior
Status Name DisplayName
------ ---- -----------
Stopped AdtAgent Microsoft Monitoring Agent Audit Fo...
Stopped AJRouter AllJoyn Router Service
Stopped ALG Application Layer Gateway Service
Running AppHostSvc Application Host Helper Service
Stopped AppIDSvc Application Identity
...
Actual behavior
"A parameter cannot be found that matches parameter name 'computername'."
Environment data
Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
In Powershell 5.1, it is possible to manage services remotely using the
-ComputerNameflag. This functionality is not present in the Powershell 7 releaseSteps to reproduce
Expected behavior
Actual behavior
Environment data