Quantcast
Channel: THWACK: Unanswered Discussions - All Communities
Viewing all articles
Browse latest Browse all 19321

Powershell - Test failed with "unknown" status

$
0
0

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.


Viewing all articles
Browse latest Browse all 19321

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>