New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


EXE/Script sensor - cmdlet not recognized

Votes:

0

Your Vote:

Up

Down

Hi,

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 by  Tony (0) 1



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

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,
Sebastian

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



Please log in or register to enter your reply.


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.