Powershell Support

There doesnt appear to be any powershell suport. I see support for scripts like VBS via batch files, but direct support of powershell would be perfect. Even indirect support via a batch file calling a powershell script would also work.

I have tested this out using a batch file calling a powershell script and the service test just reads Testing… please wait.

Powershell is so much easier to script and would make custom monitors so much easier for windows servers, especiall custom WMI scripts.

No Data
  • QUOTE (Chris Kasza @ Feb 20 2013, 08:56 PM)
    Hi Brett,

    I have had success calling a Powershell script in up.time via a bat script with lines similar to the following in the bat script:

    start “powershell.exe -noprofile ./script.ps1″


    How would you pass values like the uptime host name and the user/pass?

    I also tried using your batch file example and i still get the same issue. im just using a simple powershell script

    Get-WmiObject Win32_PerfRawData_MSSQLSERVER_SQLServerBufferNode -computer SQL-PROD | measure-object -property PageLifeExpectancy -average | select -expand average
    write-host “PageLifeExpectancy $values”

No Data