I'm getting different results between my servers that are reporting this error. Here are 2 examples. Both of these servers are reporting the error: Could not retrieve update data. Please make sure your WSUS is configured correctly. (code: PE205)
MGMT server
Running the command locally doesn't do anything. Running $searcher by itself gives the following output.
PS C:\Users\administrator> $searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher();$searcher.Search("Type='Software'").Updates | Sort-Object -Property Dates -Descending
PS C:\Users\administrator> $searcher
CanAutomaticallyUpgradeService : False
ClientApplicationID :
IncludePotentiallySupersededUpdates : False
ServerSelection : 0
Online : True
ServiceID : 00000000-0000-0000-0000-000000000000
IgnoreDownloadPriority : False
SearchScope : 0
Running the command remotely via Enter-PSSession from any other server exhibits the exact same behavior.
...
Backup Server
The command runs fine both locally and via Enter-PSSession from our PRTG server.
Locally on backup server
PS C:\Windows\system32> $searcher = (New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher();$searcher.Se
arch("Type='Software'").Updates | Sort-Object -Property Dates -Descending
Title : 2017-09 Cumulative Update for Windows Server 2016 for x64-based Systems (KB4038782)
AutoSelectOnWebSites : True
BundledUpdates : System.__ComObject
CanRequireSource : False
Categories : System.__ComObject
Deadline : 9/14/2017 8:00:00 AM
DeltaCompressedContentAvailable : True
DeltaCompressedContentPreferred : True
Description : A security issue has been identified in a Microsoft software product that could
affect your system. You can help protect your system by installing this update from
Microsoft. For a complete listing of the issues that are included in this update,
see the associated Microsoft Knowledge Base article. After you install this update,
you may have to restart your system.
EulaAccepted : True
EulaText :
HandlerID :
Identity : System.__ComObject
Image :
InstallationBehavior : System.__ComObject
IsBeta : False
IsDownloaded : True
IsHidden : False
IsInstalled : True
IsMandatory : False
IsUninstallable : True
Languages : System.__ComObject
LastDeploymentChangeTime : 9/13/2017 12:00:00 AM
MaxDownloadSize : 1232301018
MinDownloadSize : 1232301018
MoreInfoUrls : System.__ComObject
MsrcSeverity : Critical
RecommendedCpuSpeed : 0
RecommendedHardDiskSpace : 0
RecommendedMemory : 0
ReleaseNotes :
SecurityBulletinIDs : System.__ComObject
SupersededUpdateIDs : System.__ComObject
SupportUrl : http://support.microsoft.com/help/4038782
Type : 1
UninstallationNotes : This software update can be removed by selecting View installed updates in the
Programs and Features Control Panel.
UninstallationBehavior : System.__ComObject
UninstallationSteps : System.__ComObject
KBArticleIDs : System.__ComObject
DeploymentAction : 1
DownloadPriority : 2
DownloadContents : System.__ComObject
RebootRequired : False
IsPresent : True
CveIDs : System.__ComObject
BrowseOnly : False
PerUser : False
AutoSelection : 0
AutoDownload : 0
Title : 2017-08 Update for Windows Server 2016 for x64-based Systems (KB4035631)
AutoSelectOnWebSites : True
BundledUpdates : System.__ComObject
CanRequireSource : False
Categories : System.__ComObject
Deadline : 9/14/2017 8:00:00 AM
DeltaCompressedContentAvailable : True
DeltaCompressedContentPreferred : True
Description : Install this update to resolve issues in Windows. For a complete listing of the
issues that are included in this update, see the associated Microsoft Knowledge Base
article for more information. After you install this item, you may have to restart
your computer.
EulaAccepted : True
EulaText :
HandlerID :
Identity : System.__ComObject
Image :
InstallationBehavior : System.__ComObject
IsBeta : False
IsDownloaded : True
IsHidden : False
IsInstalled : True
IsMandatory : False
IsUninstallable : True
Languages : System.__ComObject
LastDeploymentChangeTime : 9/13/2017 12:00:00 AM
MaxDownloadSize : 11829763
MinDownloadSize : 11829763
MoreInfoUrls : System.__ComObject
MsrcSeverity :
RecommendedCpuSpeed : 0
RecommendedHardDiskSpace : 0
RecommendedMemory : 0
ReleaseNotes :
SecurityBulletinIDs : System.__ComObject
SupersededUpdateIDs : System.__ComObject
SupportUrl : http://support.microsoft.com/help/4035631
Type : 1
UninstallationNotes : Not Uninstallable
UninstallationBehavior : System.__ComObject
UninstallationSteps : System.__ComObject
KBArticleIDs : System.__ComObject
DeploymentAction : 1
DownloadPriority : 2
DownloadContents : System.__ComObject
RebootRequired : False
IsPresent : True
CveIDs : System.__ComObject
BrowseOnly : False
PerUser : False
AutoSelection : 0
AutoDownload : 0
Remotely executing the same from our PRTG server via Enter-PSSession to the backup server gives the same result.
Add comment