I have configured the windows update sensor for our probe server. It is returning the error "Could not retrieve update data. Please make sure your WSUS is configured correctly. (code: PE205)". I have rebooted the server. .NET is installed.
Server is Windows Server 2012R2. Other servers have the same sensor and are running without errors.
I have recreated the sensor, but still get this error.
How do i troubleshoot this?
Article Comments
Hello Rajeev,
We are currently investigating the issue to provide a fix. PRTG administrators will automatically be informed as soon as a new version is available. Please bear with us.
Best regards, Felix
Aug, 2017 - Permalink
Same error in our probe.
Problem on 3 Servers.
Windows 2008 Server 2 * Windows 2012 Server
Problems came up after switching to a new wsus. 20 others windows 2008/2012/2016 servers are working fine.
Oct, 2017 - Permalink
Andre,
This issue should be resolved within the latest version of PRTG. Please update and see if the problems are resolved.
Best, Felix
Oct, 2017 - Permalink
I get the same error after upgrading/changing our wsus server.
" Could not retrieve update data. Please make sure your WSUS is configured correctly. (code: PE205) "
I just upgraded our PRTG to the latest version Currently Installed Version 17.4.35.3326+ Tried to add the sensor again, but still get the same error.
This is the error log from the sensor.
2017-11-20T09:47:32.0957324+01:00 _-^-_ ### Entering Remote Connection to PS 2017-11-20T09:47:32.1167333+01:00 _-^-_ ### Remote Connection to PS succeeded 2017-11-20T09:47:32.5357431+01:00 _-^-_ ### Runspace Open 2017-11-20T09:47:32.8227552+01:00 _-^-_ ### Starting Check for Winupdate Numbers 2017-11-20T09:47:32.8237650+01:00 _-^-_ ### Before Running Script 2017-11-20T09:47:32.8237650+01:00 _-^-_ ### Script: $searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher();$searcher.Search("Type='Software'").Updates | Sort-Object -Property Dates -Descending | ft -autosize IsInstalled, MsrcSeverity, IsHidden 2017-11-20T09:47:35.5640720+01:00 _-^-_ ### Script was executed, showing results: 2017-11-20T09:47:35.5640720+01:00 _-^-_ ### Result Nr: 0: 2017-11-20T09:47:35.5640720+01:00 _-^-_ 2017-11-20T09:47:35.5640720+01:00 _-^-_ ### Finished writing results 2017-11-20T09:47:35.5640720+01:00 _-^-_ ### Script Result lower than 3 elements, aborting
Any update on the problem.
Best Regards Stefan
Nov, 2017 - Permalink
Hi Stefan,
Please log onto the host where the probe is installed from which PRTG sends the requests. Copy and paste this command into a PowerShell console (replace the host name in the first line by the address of the host where the sensor does not work):
Enter-PSSession -ComputerName NameOfTheTargetHost $exectime = [System.Diagnostics.Stopwatch]::StartNew() $searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher();$searcher.Search("Type='Software'").Updates | Sort-Object -Property Dates -Descending | ft -autosize IsInstalled, MsrcSeverity, Title ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search("Type='Software'") ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search("Type='Software'").Updates $exectime.Stop()
Please forward a screenshot of the results you receive. Please note that it might take some time until the result is displayed.
Best regards, Felix
Nov, 2017 - Permalink
Here is the Output from Powershell
PS C:\Windows\system32> Enter-PSSession -ComputerName Server01.domain.local [Server01.domain.local]: PS C:\Users\adminuser\Documents> [Server01.domain.local]: PS C:\Users\adminuser\Documents> $exectime = [System.Diagnostics.Stopwatch]::StartNew() [Server01.domain.local]: PS C:\Users\adminuser\Documents> [Server01.domain.local]: PS C:\Users\adminuser\Documents> $searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher();$searcher.Search("Type='Software'").Updates | Sort-Object -Propert y Dates -Descending | ft -autosize IsInstalled, MsrcSeverity, Title [Server01.domain.local]: PS C:\Users\adminuser\Documents> [Server01.domain.local]: PS C:\Users\adminuser\Documents> ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search("Type='Software'") ResultCode RootCategories Updates Warnings ---------- -------------- ------- -------- 2 System.__ComObject System.__ComObject System.__ComObject [Server01.domain.local]: PS C:\Users\adminuser\Documents> [Server01.domain.local]: PS C:\Users\adminuser\Documents> ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search("Type='Software'").Updates [Server01.domain.local]: PS C:\Users\adminuser\Documents> [Server01.domain.local]: PS C:\Users\adminuser\Documents> $exectime.Stop() [Server01.domain.local]: PS C:\Users\adminuser\Documents>
Best Regards Stefan
Nov, 2017 - Permalink
Hi Stefan,
According to the results, the PowerShell command misses some results, did you copy the code into the console at once, or line by line? If it was passed line by line, try to paste it completely at once.
We also encountered one very similar case where the automatic update of Windows did not work at all on the target host. Does the Windows feature display the open update if you open it via Windows?
Best regards, Felix
Nov, 2017 - Permalink
I did some testing, and almost all my servers, didn't give any output of the powershell script.
They I found 2 that it worked on, the ones it stopped working on had just got an agent for SCCM installed, instead of our old WSUS server. and the 2 that the script worked on, had not.
Windows update works fine on the servers, but the update history is empty, I tried to install and update, and it got in the history fine, but still no output from the powershell script.
Do you know of any issues with SCCM and the windows update sensor.
Nov, 2017 - Permalink
Yep, SCCM based update distribution is not supported by the sensor I'm afraid :(
Kind regards,
Tech Support Team
Nov, 2017 - Permalink
Hello, i have same issue.
did all things but no sucess.
There is result powershell scritpt.
i'm not upgrade to v18 yet.
"Exception calling "Search" with "1" argument(s): "Exception from HRESULT: 0x8024401F" At line:7 char:1 + $searcher.Search("Type='Software'").Updates | Sort-Object -Property Dates -Desce ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation Exception calling "Search" with "1" argument(s): "Exception from HRESULT: 0x8024401F" At line:9 char:1 + ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation Exception calling "Search" with "1" argument(s): "Exception from HRESULT: 0x8024401F" At line:11 char:1 + ((New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher()).Search ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation"
What else can I do?
May, 2018 - Permalink
Version 18 will probably error out as well. Are you able to install any updates on the host or are there non available?
Kind regards,
Stephan Linke, Tech Support Team
May, 2018 - Permalink
Hello,
Do you have another probe which is in the same network as the probe where the error is displayed? If so, try to create a new device with the IP address of the other remote probe and add the Windows Update Status to this device. Does the sensor work?
Best regards, Felix
Aug, 2017 - Permalink