I got an error on my probe server.

The Windows Update Status sensor reports an error on the probe server device:

Dieser Sensor benötigt die PowerShell 2.0 (oder höher) auf dem System mit der PRTG Probe.

(´++<?xml version="1.0" encoding="utf-8"?> <prtg> <error>1</error> <text>Unable to cast object of type 'System.Management.Automation.PSCustomObject' to type 'System.Collections.ArrayList'.</text> </prtg>) (Code: PE181)

But I have Powershell 2.0 and 5.1 installed.

It already worked months until now.


Article Comments

Hi Simon,

Please issue the following command in a 32-Bit PowerShell:

$PSVersionTable.PSVersion

Please post the result of the command.

Best regards.


Dec, 2017 - Permalink

Hello Dariusz,

I have the same problem with 2 Servers since i updated to 17.4.36.3670+

Thats my results from $PSVersionTable.PSVersion on the 2 servers:

Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS C:\Users\admin> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\admin> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  1944

Jan, 2018 - Permalink

I am having the same problem here. I am pretty sure this started happening after the last update. I updated last Sunday!


Jan, 2018 - Permalink

Hi there,

Please note that the PowerShell version of the probe needs to be at least v3. Please issue the command again on the Probe Server in the 32Bit PowerShell:

$PSVersionTable.PSVersion


Best regards.


Jan, 2018 - Permalink

Thx Dariusz. That fixed the Problem for me.


Jan, 2018 - Permalink

Hi, same Problem here....on the remote probe I get

$PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  1715

and now? Any Idea? It's a 2016 Server and WSUS Powershell Sensor ist not working to any Server.... If I connect via powershell to the other Server (from the remote probe..) with enter-pssession it is no problem to get the WSUS Status.

Chris


Jan, 2018 - Permalink

The error is actually different, please provide us with Probe Status Files via support@paessler.com so we can check what's going on :)


Kind regards,
Stephan Linke, Tech Support Team


Jan, 2018 - Permalink

sorry to bring up an old topic, but I never saw the resolution and I am having the same problem. Does anyone know the fix?

My Powershell Version

PS C:\Windows\system32> $PSVersionTable.PSVersion

Major Minor Build Revision ----- ----- ----- -------- 5 1 14393 3053

My PRTG version

Currently Installed Version 19.2.50.2842

The sensor error

Sensor Windows Updates Status

Acknowledged at 11/5/2019 8:54:51 AM by David DeGraw: Powershell version not supported. Current Powershell major version: 2. Please install Powershell 3.0 or later.


Nov, 2019 - Permalink

Is this the actual (Remote) Probe where the Sensor resides on?


Nov, 2019 - Permalink