Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param(
- $prtghost,
- $device,
- $sensor,
- $status,
- $downsince
- )
- $ps = new-object System.Diagnostics.Process
- $ps.StartInfo.Filename = "C:\Program Files (x86)\PRTG Network Monitor\Notifications\exe\PRTG_SendAlertToHP.exe"
- $ps.StartInfo.Arguments = [string]::Format("{0} {1} {2} {3} {4}", $prtghost, $device, $sensor,$status,$downsince);
- $ps.StartInfo.RedirectStandardOutput = $True
- $ps.StartInfo.UseShellExecute = $false
- $ps.start()
- $ps.WaitForExit()
- [string] $Out = $ps.StandardOutput.ReadToEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement