I am having an issue when attempting to run a PowerShell script from PRTG. I have checked all the usual / recommened things like execution policy etc but still getting an error on execution. The script runs fine when run manually under both x64 and x86 PowerShell command prompts.
The script I am trying to run is the msxfaq.de Ubiquiti monitoring script . What is weird is that the Luciano's script is running fine with exactly the same PRTG settings / permissions.
I enabled logging to disk for the sensor and noticed the following in the output file.
& : AuthorizationManager check failed. At line:1 char:138 + ... l.Utility};&'C:\Program Files (x86)\PRTG Network Monitor\custom senso ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
I have also tried specifying a user context for the sensor to run which was a local administrator. This made no difference.
Anyone got any suggestions for this because I am pretty much out of ideas?
Add comment