Problem
Windows PowerShell is a framework from Microsoft that includes a command-line shell and a scripting language, but does not include an SMS function.
Solution
LOX24 offers you a ready-made script „out of the box“ to send SMS worldwide directly from PowerShell.
Result
You can receive SMS notifications about the status or results of your scripts using PowerShell, send alarms or warnings for critical events, and much more.
Here's how to send SMS using PowerShell
- First of all, you need to set the ExecutionPolicy to Bypass, if you haven't already done so. This will allow our SMS script to be imported into your system.
- Start Powershell as an administrator. To do this, search for „powershell“ in the Windows taskbar, right-click on the result, and select „Run as administrator“.

- Now enter „Set-ExecutionPolicy -ExecutionPolicy Bypass“ in the command line.

- Select j for a Yes
![]()
- Next charge They belong to us Script Download the file as a zip file. Extract it to any directory. (Download: PowerShell SMS)

- Copy the directory path of the unpacked folder as text.

- Using a CD and the directory path, you can now navigate in PowerShell to the folder of our SMS script.

- Next, you need an API key. Log in under https://account.lox24.eu/index.php?page=settings&action=api Log in to your web account. Create an API v2 key there.

- Now copy this API key into PowerShell and set it using the following command: Set-Lox24ApiKey -ApiKey „YourApiKeyHere“
![]()
- And afterwards you can send your first SMS. The SMS always has the destination number as a parameter, the sender ID of your SMS (max. 11 characters of text or 15 digits of the phone number), and the SMS text: Send SMS -To 491700000000 -From „YourCompany“ -Message „Test SMS from PowerShell!“


Advantages of sending PowerShell SMS with LOX24
The LOX24 SMS API is a powerful and reliable solution for sending SMS messages. With the LOX24 SMS API, you can connect your PowerShell to the LOX24 SMS Gateway and send SMS messages to your customers, partners, or employees worldwide. The LOX24 SMS API offers you the following benefits:
- You benefit from high availability, quality and speed of SMS messaging.
- You pay a reasonable price Pricing without fixed costs or hidden fees.
- How do they meet the requirements of German data protection law, since all the servers are located in Germany?,
- You receive real-time statistics and delivery reports for your SMS messages.
The LOX24 SMS API is therefore an ideal choice for anyone looking for an easy, secure, and cost-effective way to integrate SMS messages into their applications. If you would like to learn more about the LOX24 SMS API, you can view the following resources: SMS API

