Sending SMS with Powershell script
Sending SMS from a Powershell script using the SMS Dispatch Manager program from LUTEUS can be set up quickly using the code presented on this page.
The code is available by default in the /bin directory where the SMS Dispatch Manager program has been installed.
Before using it, check that the path $msg_path specified at the beginning of the script points to the path of your installation.
To use the script in an online command window, first select the / bin directory and then type the following command:
. \ Send_SMS.ps1 -recipient_list "LUTEUS" -msg "Test message sent by SMS dispatch Manager" '
Example

If the script is running, verify that you have a new XML file in your / bin / sms_queue directory. The SMS Dispatch Manager program scans this directory at regular intervals to include in its processing queue all the files in an XML format of the correct format (example below)

The SMS message must be also visible in the SMS Distach manager queue.

The powershell script code given below can also be used in more complete scripts.

The script also generates logs in the Microsoft log that can be used to monitor the proper operation of the script.

If you opt for SMS Dispatch Manager as a complementary program of our LoriotPro network supervision program, it will allow you to receive SMS alarms generated by our supervision solution directly on your mobile phone.