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 126.96.36.1997+ Powershell: PSVersion 5.1.17763.1490 64 bit Windows 2019 Server Using Powershell 64 bit in ISE and PRTG Sensors