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!
Article Comments
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
May, 2019 - Permalink
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 ...
May, 2019 - Permalink