The values given back by custom EXE/Script sensors may not contain any line breaks, otherwise the sensor will not be able to process them correctly.
How do I avoid line breaks when using a Powershell script with PRTG?
Modified on 2025-06-10 12:07:42 +0200
The values given back by custom EXE/Script sensors may not contain any line breaks, otherwise the sensor will not be able to process them correctly.
How do I avoid line breaks when using a Powershell script with PRTG?
Powershell seems to perform automatic word wrapping when executed on the command line like
Powershell -file script.ps1 > output.txt
In order to avoid automatic line breaks, please start your Powershell scripts with the following line:
$host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(512,50)
Nov, 2010 - Permalink