I'm running latest release V.17.4.36.3506 and I get the following message on all Windows Update Status sensors :

This sensor requires the PowerShell 2.0 (or higher) to be installed on the probe system. 
( Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. 
(Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed. 
(Exception from HRESULT: 0x8013141A) --- End of inner exception stack trace --- at LastWindowsUpdateSensor.Program.Main(String[] args) ) (code: PE181)

Article Comments

Hi there,

As the error message (This sensor requires the PowerShell 2.0 (or higher) to be installed on the probe system.) indicates, you need at least PowerShell Version 2 or higher installed on the Probe Server. To check which version is installed, run the following command in a PowerShell Console on the Probe:

$PSVersionTable.PSVersion


Best regards.


Dec, 2017 - Permalink

I'm running PRTG on Windows 7 Pro SP1. Powershell 2.0 is installed by default on any Win 7 platform.

Output from Powershell is:

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

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

Major  Minor  Build  Revision
-----    -----    -----  --------
2        0        -1      -1


PS C:\Users\philec>

I'm afraid that the issue is related to the PublicKeyToken causing exception error which returns HRESULT: 0x8013141A


Dec, 2017 - Permalink

The problem is indeed related to PowerShell 2.0 and most likely also to the authentication mode.
I just upgraded my Windows 7 SP1 and Windows 2008 Server SP2 to WMF 3.0, including PowerShell 3.0.
I did strictly follow Microsoft guidelines:

One important last step remains to perform in a Powershell session:

  • winrm set winrm/config/client/auth '@{Basic="True"}'

Running Powershell 3.0 on the probe and on all target Windows platforms, solve the main issue.


Dec, 2017 - Permalink

Hi there,

Great to hear that an update of the PowerShell Version solved your issue. :)

Best regards.


Dec, 2017 - Permalink

We have the exact same issue after the last update. Does this mean we suddenly need to update all our servers to Powershell version 3?


Dec, 2017 - Permalink

Hi there,

This is correct. Please note that the sensor needs at least PowerShell Version 3. Please also note that PowerShell is already 6 years old, so an update would be quite good. :)

Best regards.


Dec, 2017 - Permalink

Hey,

Thats true. Updating is a good thing. The windows 2008, 2008r2 and 2012 and SBS2011 servers we are running are all fully up-to-date (according to Windows Update). Powershell is not bering pushed to these servers, because is can break a lot of stuff.

https://www.microsoft.com/en-us/download/details.aspx?id=34595

Its not fully compatible with Server SBS 2011.

Its manually installed (NOT windows update) on 2008 + 2008r2 server.

And we only need to do this for the update of the PRTG sensor?

Thanks for your update.

Peter


Dec, 2017 - Permalink

Hi Peter,

As explained, the sensor is designed for more modern systems and uses commands for more stability and better performance which are only available in PS v3.

Best regards.


Dec, 2017 - Permalink