Hi. I get this error when running the Windows Update sensor against my Windows 2016 servers:
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(...) (code: PE181)? |
The knowledgebase article states that I must install Powershell 3 or newer, but Windows Server 2016 ships with PowerShell 5 and Windows Management Framework 5.1.
PS C:\Windows\system32> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 1 14393 1944
I am ablle to connect remotly:
PS C:\WINDOWS\system32> New-PSSession -ComputerName ********* -Credential ***\**** Id Name ComputerName ComputerType State ConfigurationName Availability -- ---- ------------ ------------ ----- ----------------- ------------ 2 Session2 ******** RemoteMachine Opened Microsoft.PowerShell Available
What should I do to make this work?
Article Comments
Have you set the ExecutionPolicy to Remote Signed on the target machine? Does the target machine have the included cmdlets needed to execute the script?
Feb, 2018 - Permalink
ExecutionPolicy is set to Remote Signed. Which cmdlets is needed to execute the script?
I have looked at the logfile for the sensor, and have found tjis error: [DEBUG] - Exception Message: Unable to cast object of type 'System.Management.Automation.PSCustomObject' to type 'System.Collections.ArrayList'.
Feb, 2018 - Permalink
Hello Rolf,
Please head to this thread in our knowledge base, which describes different approaches in case of errors with the Windows Update Status sensor.
There you'll also find the executed query as well as additional information.
What version of PRTG are you currently using? Please note, that we had a couple of issues in regards to this sensor recently, so it is important to test the behavior with the latest available version 18.1.37.
Best regards,
Sebastian
Feb, 2018 - Permalink
For what it's worth, I'm having the same issue with the Windows Update sensor with several Server 2016 machines. As with Rolf, I've verified that the target server has PowerShell 5.1 installed and the PRTG server has PowerShell 4.0 installed. We're currently on version 18.1.36.3733 and I'm seeking approval to upgrade to 18.1.37.12158. The sensors are returning the same message:-
This sensor requires the PowerShell 2.0 (or higher) to be installed on the probe system. (´++<?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)
Feb, 2018 - Permalink
Hello rhil_wcc,
Thank you very much for your reply.
Could you please verify that .NET Framework 4.5 is installed on the Probe system's host machine from which you query the Windows Update Status and which is another remark for the sensor.
Best regards,
Sebastian
Feb, 2018 - Permalink
I tested the approach mentioned in article 71899, and the powershell script returns in less than 500 milliseconds. I have also verifyed that the probe running the Windows Update requests are running .NET framework 4.6.
I have just updated PRTG from v. 18.1.36 to v. 18.1.37.12158. The sensor is still in error state, but the status message has changed to: Couldn't deserialize output from remote.
Feb, 2018 - Permalink
We only have the one PRTG machine that is both server and probe. I have verified that .NET 4.6.1 (release 394271) is installed on this computer.
I have just completed the upgrade to 18.1.37.12158 - this has changed the error message to "Couldn't deserialize output from remote."
This is only the case for target servers running 2016 - we have another hundred plus servers running 2012R2 and 2008R2 for which this sensor is working fine.
Feb, 2018 - Permalink
Dear Rolf,
dear rhil_wcc,
Thank you both for your responses.
We are currently investigating such issues. Because it is highly probable that we might require a couple of additional log files, please contact us via email at support@paessler.com.
Please attach a full-screen screenshot of the Overview, Logs, and Settings tab and also the sensor results which can be enabled within the sensor settings.
Please see the sensor's manual for further information.
Best regards,
Sebastian
Feb, 2018 - Permalink
Hi,
I have the exact same problem with the Windows Updates Status sensor on Windows 2016 servers. For all Windows 2016 servers i get the error 'Couldn't deserialize output from remote.'
Is there a fix yet?
Best regards,
Edwin
Mar, 2018 - Permalink
Hello Edwin,
Not yet, I'm afraid. This issue is currently being investigated and I expect it to be fixed with the upcoming version 18.x.39.
For the time being, check the workaround described here.
Best regards,
Sebastian
Mar, 2018 - Permalink
Same issues here. Works on Windows 2012 R2
On Windows Server 2016 error 'Couldn't deserialize output from remote".
Mar, 2018 - Permalink
Hello studsgaard,
Please see my response above. We are already aware of this and I expect it to be fixed in PRTG 18.x.38.
Best regards,
Sebastian
Mar, 2018 - Permalink
Hello,
We have installed 18.2.39.1661 and we have still the message: Couldn't deserialize output from remote. This situation is just by Windows 2016 servers. When are you fixing this od does we need to change something in this release that is workes?
Best regards, Andreas
Apr, 2018 - Permalink
Hello in4out,
thank you for your reply.
I've located the internal development task mentioned previously by my colleague, and I can confirm that as we required more time for the implementation and testing it ended up missing the 18.2.39. The information I'm able to provide at the moment is that the implementation is done/tested and should be released as part of PRTG version 18.x.40, our upcoming stable release. We do not have a precise ETA for it at the moment, but expect to release it over the next couple of weeks if all goes to plan.
Best Regards,
Luciano Lingnau [Paessler Support]
Apr, 2018 - Permalink
Hello,
I've just deployed 18.2.40.1683+.
I still have this message but now with an exception: Couldn't deserialize output from remote. Exception de HRESULT : 0x8024002E
Both the probe and target run windows 2016 with PS 5.
Best regards,
Matthieu Noirbusson
May, 2018 - Permalink
Hello Matthieu,
Thank you very much for your reply.
Please contact us directly via email to support@paessler.com and provide us with the following information from the affected sensor:
1. a screenshot of the sensor's "Overview" tab
2. a screenshot of the sensor's "Log" tab
3. the sensor's configuration report (which can be generated within the sensor's "Settings" tab, using the small printer icon in the upper right corner of the Basic Sensor Settings. Simply print/save this as configuration report as PDF file.)
4. the sensor results. Please see this article on how to activate it within the sensor settings.
Thank you very much in advance.
Best regards,
Sebastian
May, 2018 - Permalink
Hello, sorry to revive an older thread but I seem to be still having the same issues here and wondering if this is actually still a problem.
On both versions, 18.2.41.1652+ and 18.3.42.1748+, we receive an error only for Windows Server 2016 with the Windows Updates Status sensor.
Error message: "Couldn't deserialize output from remote. Exception from HRESULT: 0x80244022"
Probe is running Windows Server 2012r2 with PSVersion 4.0 and monitored server is running Windows Server 2016 with PSVersion 5.1.
Thanks!
Aug, 2018 - Permalink
Hi there,
The empty response means, somehow the system is unable to report countable updates. Which is what throws the sensor off. We'll improve the error handling there, so that you see exactly this as error message ("Host didn't report countable Updates.").
Please check with Microsoft as to why the machine does not report any updates there.
Best regards.
Aug, 2018 - Permalink
Hello, We are on a 18.4.46.1754 version and also get no updates reported error on two 2016 servers. On the other two I get the Couldn't deserialize output from remote. Has the fix been implemented or shall I open a case with support? Thanks in advance
Dec, 2018 - Permalink
Hi there,
Unfortunately, there is no real fix for this issue as it seems that Microsoft doesn't want you to request these updates manually. It seems that this issue only prominent on Windows Server 2016 and Windows 10 where such changes were implemented by MS.
Best regards.
Dec, 2018 - Permalink
Has this been resolved? I still have 2016 servers with issues. Many are still paused from when this was a known issue, but a new one I just setup is having the issue as well.
Jul, 2019 - Permalink
Hi there,
The release is planned for version 19.x.52. This version should arrive in the next two months.
Best regards.
Jul, 2019 - Permalink
Both the PRTG Probe and the target machine need to have PowerShell versions greater than 2.0
Can you verify this?
Feb, 2018 - Permalink