Passing parameters into a powershell script
Modified on 2025-06-10 12:17:26 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
Hello,
I got a power-shell script that sends a message using Twilio service.
I would like to use it as a notification in PRTG.
I don't understand how I can pass PRTG parameters like what is down, what time, what is the down message etc etc into this script that I am executing.
Can I ask some guidance on this?
Many thanks.
Mirek
Article Comments
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Simply use the available placeholders in the parameter field. Make sure that you modify your script accordingly, so it evaluates these parameters accordingly (https://ss64.com/ps/syntax-args.html).
PRTG Scheduler | PRTGapi | Feature Requests | WMI Issues | SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Jan, 2019 - Permalink