Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20607

Re: Can Orion or SAM query a text file or execute/display the results of a PowerShell script

$
0
0

The resulsts would be the exit code, which you can control in PS. That and a success/fail  status is what you can get.

Alternatively, using powershell monitor you could monitor an output file. To get an message output you should use write-host $message. For SAM to work with this the minimum requirement is to get a statistic write-host "statistic: stats".

 

So, if you use both, you'll get the statistic and a message.


Viewing all articles
Browse latest Browse all 20607

Trending Articles



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