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

Cannot load custom powershell module

Votes:

0

Hello friendly folks,

I started building a script using NetCmdlets (https://www.nsoftware.com/powershell/netcmdlets/download.aspx) for the EXE/Advanced sensor for monitoring a NetScaler with snmp. But the logging of a simple script says it cannot execute the custom commands (e.g. Get-SNMP). When I explicitly try to load the module it says it cannot be found. Using paths, names, full path, module or data file loading, the error keeps coming when I do a Scan Now.

I assume it has something to do with the usercontext under which PRTG executes the script that it cannot find the module (despite it being in the default win\sys32\ps\1.0 etc. path). Any ideas on this issue? PRTG runs under the Local System user.

Thanks in advance!

powershell prtg snmp

Created on May 6, 2019 9:11:11 AM



2 Replies

Accepted Answer

Votes:

0

Ok, so I've been messing around and placed the directory with the .dll module in:

C:\Program Files (x86)\WindowsPowerShell\Modules

And everything works now of course ...

Created on May 6, 2019 12:06:47 PM



Votes:

0

Hello Bastiaan,

I'm glad you found the issue. Thanks for sharing your solution with us.

Have a great day.


Kind regards,
Birk Guttmann, Tech Support Team

Created on May 6, 2019 1:31:04 PM by  Birk Guttmann [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.