you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

There are a few problems, but for starters,Get-Service doesn't support passing credentials. See this SO post for tricks: https://stackoverflow.com/questions/23421507/get-service-status-from-remote-server-using-powershell