Background info:
I have several computers. Some have Windows 10 Home, Windows 10 Pro, and one with Windows 7 Ultimate.
Network is Homegroup. I'm learning Powershell ISE 5.1, signed on as an Administrator.
The problem is when I run : Get-Service without any parameters it runs fine because it's the local computer. But if I run it with the -ComputerName parameter and the name of one of the other computers on the network, for example:
Get-Service -ComputerName Lenovo17
I get, the following error:
Get-Service : Cannot open Service Control Manager on computer 'Lenovo17'.
This operation might require other privileges.
At line:1 char:1
- Get-Service -ComputerName Lenovo17
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Get-Service], InvalidOperationException
- FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetServiceComm
and
What do I need to do to get this command to run properly without error?
Loran Calvin