What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

EXE/Script sensor - cmdlet not recognized




I am running a powershell script which uses the office365 Connect-MsolService cmdlet. When running the script manually on the probe server, it runs fine. I run this on the same user account as the PRTG sensor does. The cmdlet is obviously installed.

When running the script via the EXE/Script sensor, it stays the cmdlet is not recognized as the name of a cmdlet, function, script file, or operable program.

What might be causing this?

exe-script-sensor office365 script

Created on Jul 16, 2019 2:22:11 PM

1 Reply

Accepted Answer



Hello Tony,

Thank you very much for your contact and please apologize the long delay.

The issue is most likely caused, due to the fact that you've tested the script with a 64-bit instance of Powershell. Please note that PRTG uses the 32-bit instance of Powershell per default.

This being said, please test your script in a x86 environment and also consider trying to run the 64-bit version for PRTG using this workaround.

Best regards,

Created on Jul 19, 2019 8:41:10 AM by  Sebastian Kniege [Paessler Support]

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.