I want to use the EXE/Script Sensor in the security context of the parent device for a Powershell Script, but keep receiving the error 0x522 "A required privilege is not held by client".
The way PRTG is set up within our environment is that the probe service runs as a local user PROBESERVER\serviceaccount that is member of the local Administrators group on the probe device. For special purposes (WMI filter) we specify different credentials on specific devices / device groups as needed.
I've created a device (with IP 127.0.0.1, so the probe device), and entered the credentials of a domain admin in its "Credentials for Windows Systems". I've then created a EXE/Script sensor using the script "Demo VBScript - Returns user of process.vbs".
When setting the security context to probe device, the Sensor will be in the OK state and show the correct user "PROBESERVER\serviceaccount". When setting the security context to the parent device, the Sensor will be in Error state and it will show "A required privilege is not held by client (0x522)"