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

XML Custom EXE/Script Sensor and Use Windows credentials of parent device

Votes:

0

Hi,

i am writing a Powershell Sensor to Monitor the Snapshot State of my vCenter (sometime Veeam didn't delete old Snapshots and that can be a very big problem)

I wrote the script and it works flawless on my account. To solve the problem to install and load the vmware.powercli i set the Sensor to "Use Windows credentials of parent device". The parent device has my Credential and a wmi sensor work fine on this device (Monitor Disk Space).

But my script throws every time the error that he cant find get-vm als module. I investigated that the account which is used to execute the script is all ways the machine account from prtg. Chancing the option "Use Windows credentials of parent device" does nothing (output $env:USERNAME in a file)

Any advice where whats wrong. if i reminded me right i have allready done this way serveral time.

best regards Heiko

p.s. Some more Informations: PRTG Currently Installed Version 21.1.65.1767+ Powershell: PSVersion 5.1.17763.1490 64 bit Windows 2019 Server Using Powershell 64 bit in ISE and PRTG Sensors

custom-exe-script-sensor powershell use-windows-credentials-of-parent-device windows-credentials

Created on Mar 5, 2021 12:26:57 PM



1 Reply

Votes:

0

Hello there,

Note, that PRTG always runs the x86 Powershell, so you need to make sure that the module is available there as well. In addition, it might help if you make sure that the Local System is also allowed to use the module.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Mar 11, 2021 5:29:20 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.