I'm running a custom PS script, but getting "Access Denied, PSSessionStateBroken" in PRTG.

I can fix this by changing the account the "PRTG Probe Service" is running under, however I would like to avoid having to change this on every system where this custom PS script should be running.

I there another way of executing custom PS scripts with administrative access, while keeping the PRTG Probe Service running under the Local System account?

It should be said that the top-level group with the server in PRTG (not ROOT, but one step down) has Windows Credentials set to an domain administrative account, and the servers in this group has Windows Credentials set to "Inherit".


Article Comments

In settings of PRTG sensor, you have item called "Security Context". By selecting "use Windows credentials of parent device", the script will inherit credentials from the device and you won't have to care what account probe actually runs under.


Sep, 2017 - Permalink