locked
Get service status from remote host via powershell RRS feed

  • Question

  • You can achive this via below script


    $computers = Get-Content C:\Users\skverma\Desktop\Servers.txt foreach ($computer in $computers) { get-service -Name "wuauserv" -ComputerName $computer -ErrorAction Stop |

    select MachineName,DisplayName,StartType,Status }

               
    Monday, January 4, 2021 1:06 PM