Am unable to get powershell scripts to report "up" status. Here is a simple one I created, can anyone offer input as to what the problem could be?
(Look at contents of log file for the text 'OK')
- Executing script on local host
- Text inside test log file: OK
The Script:
Select-String -Simple OK c:\log.txt
Write-Host "Statistic: OK";
Write-Host "Message: Registered";
Exit 0;
Output: ==============================================
C:\log.txt:OK
Statistic: OK
Message: Registered
Reports test failed with "unknown" status.