Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 13537

Powershell script arguments

$
0
0

New to this community so hello all!

 

I'm running SAM 6.2.4, and I'm fairly adept at Powershell, but I have a small problem regarding script arguments when trying to convert one of my standalone scripts into a monitor script.

 

For testing, I've tried various syntax but none have been successful in trying to pull an argument from outside into the script. Below is the last attempt (which doesn't work).

I've tried various in the script body...

The script runs fine but I can't seem to find the correct syntax to parse the argument.

 

In the last example, the Output Result is simply 'Message:'

 

Also, what is the separator for multiple arguments?

 

Can someone ease my pain.

 

Thanks


Viewing all articles
Browse latest Browse all 13537

Trending Articles



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