Custom PowerShell Sensor not showing correct value
Modified on 2025-06-10 14:00:33 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
Article Comments
Hi,
could you please activate the debug output of the script? Therefore, plesae go to tab Settings of the sensor and set option Result Handling to Write Result to Disk. This will create a file called Result of Sensor XXXX.txt in your PRTG Data Directory where the XXXX reflects the sensor id.
Please send the output along with the script itself to support@paessler.com and refer to this article.
Best regards
Dec, 2013 - Permalink
The log showed an Access Denied error. I changed the context the script is run under and all is well. Thanks for the point in the right direction.
Dec, 2013 - Permalink
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hi,
could you please activate the debug output of the script? Therefore, plesae go to tab Settings of the sensor and set option Result Handling to Write Result to Disk. This will create a file called Result of Sensor XXXX.txt in your PRTG Data Directory where the XXXX reflects the sensor id.
Please send the output along with the script itself to support@paessler.com and refer to this article.
Best regards
Dec, 2013 - Permalink