Hello. I have one quite simple PowerShell script which I need to run on a remote server to monitor some WMI objects. This server and PRTG probe are in the same domain. When I execute the script from PowerShell environment manually everything is ok. But when I run it through PRTG (EXE/Script sensor type) it doesn't work.
Finally I found out that the problem might be in credentials for the script. I've thought that it should use Windows credentials inherited from the device settings (I have a special PRTG domain user). But in fact the user is like PRTGServer$. Also I see in remote server events log that this server doesn't receive computer name from the PRTG probe. I think that everything would be ok with my standard PRTG user. What can I do to run this script using this credentials?
Thank you.
Article Comments
Thank you. Choosing "Use Windows credentials of parent device" solved the problem.
Jul, 2016 - Permalink
Dear ase
The PRTG probe is a 32 bit application and runs the 32 bit powershell. If you set the sensor setting "security context" to the parent device's Windows credentials, the powershell should be started as that user.
Jul, 2016 - Permalink