I’m new to powershell but trying to learn. I need to restart a named instance of SSRS on a server. The instance is called POCSSRS
This is my code:
Get-Service -Computer $ssrs.machinename -Name “POCSSRS” | Restart-Service;
But I get the error:
Get-Service : Cannot validate argument on parameter ‘ComputerName’. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Any idea what Im doing wrong?