Hi Paessler,

After I update one of our PRTG servers to version 21.3.69.1333 x64, the Powershell script sensors stop working, before the update it is completely working 100%. Even the demo PowerShell script sensor is not working. But tried the script on PowerShell app and it's working.

Here's the error message.

From my powershell custom sensor - Response not well-formed: "( )" (code: PE132)

From the demo PowerShell script (Available MB via WMI.ps1) :

Response not well-formed: "(A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows. )" (code: PE132)

Thank you! Would like to resolve this issue before updating the rest of our PRTG servers.


Article Comments

Hi, I have exactly the same behavior since the update from V20.4.64.1402 to 21.3.69.1333+.

One Solution proposed by Support is to disable the new PowerShell Security Enhancement in Setup > System Administration > Monitoring. This new Experimental feature is activated by default.


Jul, 2021 - Permalink

Hello,

Thank for your messages.

In the latest versions of PRTG, we included PowerShell security enhancements which could be at the origin of this issue, when using the cmdlet Write-Host to return the data in PRTG.

Therefore, I invite you to replace it with Write-Output and then check if the issue still occurs afterwards.

If you have questions, let us know.

Regards.


Jul, 2021 - Permalink

Hi,

I replaced it with write-output and now it is working. Thank you, Florian! :)

Regards, Ben


Jul, 2021 - Permalink

Thank you very much for the update. Glad to hear that it is working again.

Have a great day.

Regards.


Jul, 2021 - Permalink