0

Part of our daily process is to RDP to a remote machine and check the services are running. We have to check “File and Storage Services”, “IIS”, “Local Server”, and “All Servers” (see image). Can I do this remotely through PowerShell? I have a script (Get-Service -ComputerName [remote computer name]), but which services do I list to check these 4 main areas are running?

Server Manager

Tried: get-service -Name "LanmanServer", "LanmanWorkstation" -ComputerName [computername] get-service -ComputerName [computername] | Where-Object {$.Status -ne "Running"} get-service -ComputerName [computername] | Where-Object {$.Status -eq "Running"}

So I can list the services, and if they're running or not, but this doesn't tell me what I need

RobJ
  • 1
  • 1
  • Those groupings aren't discreet services; `Get-Service` is likely to return services that would be grouped under those headings, but you won't find a service called 'File and Storage Services' (the exception to this is IIS, which *does* have a discreet service - a quick and dirty way to find the service name is to check the list of Services in Task Manager and correlate the Description to the Service Name) – Anthony Norwood Feb 07 '23 at 16:33

0 Answers0