Dear All,
I'm currently facing an issue working on Windows powershell monitor.
I read a lot of threads but I still not able to find what is wrong.
I'm trying to monitor all windows services and detect all stopped services but when I try click on "Get script output", nothing happens the output result display "Loading. Please wait..." and nothing else.

I'm using the following script (from Monitoring All Auto-Start Services In A Single SolarWinds Orion SAM Script | Prosperon Networks )
$IPAddress = '${IP}' $ExludeServices = 'SysmonLog','Ati HotKey Poller','spupdsvc','McShield' $Services = Get-WmiObject Win32_Service -ComputerName $IPAddress -Credential '${CREDENTIAL}' | Where-Object {$_.StartMode -eq 'auto' -and $_.state -ne 'Running'} | where ({$ExludeServices -notcontains $_.Name}) | select name, state $Message='' $Statistic=0 foreach ($service in $Services){ $Message+=$service.name + " " $Statistic++ } if ($Error.Count -eq 0) { write-host "Message: $Message"; write-host "Statistic: $Statistic"; exit 0; } Write-Host "Message: $($Error[0])"; Exit 1; |
When I launch the powershell script directly from the poller, it works fine (on the same server):
PS C:\Users\xxx> C:\Users\xxx\Desktop\Untitled1.ps1 Message: RemoteRegistry Statistic: 1 |
could someone can help on this ?
thanks.
Julien.