Partager via


How to delete upgrades in WSUS

(Alternative title: "Help, I synched Upgrades before installing the patch!"  

This applies to anyone who missed KB 3095113 when it was offered as a hotfix, and subsequently enabled synching of Upgrades in their environment. The upgrades that were downloaded happen to be from the Windows 10 1511 feature upgrade, but these steps could be modified to suit a similar purpose for a different set of content.)

In this scenario, WSUS has downloaded content that it cannot use. Because parsing only happens once, and WSUS does not know what “Upgrades” are without having installed KB 3095113, it incorrectly identifies the upgrade as a regular update and saves it to the SUSDB as such. In order to remedy this, you must perform the following sequence of steps on the WSUS servers as specified in the table below (where "USS" represents "upstream server"):

Action

Where to perform

1.       Disable the “Upgrades” classification

USS or Standalone WSUS

2.       Delete the previously synched upgrades

All WSUS (start with topmost server)

3.       Enable the “Upgrades” classification

USS or Standalone WSUS

4.       Perform full sync

USS or Standalone WSUS

Some workarounds propose that you delete these entries from the SUSDB via SQL queries, but we do not recommend directly modifying database content. The supported way to remove update content is with PowerShell commands [from an elevated session] as described below. Again, be sure that you perform the deletion step on the WSUS server that is highest in your hierarchy first, and then work your way down; otherwise, your deletions may be replaced by the USS on the next sync attempt. 

// disable Upgrades classification on local WSUS server

Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq “Upgrades”} | Set-WsusClassification -Disable  

// delete all update content on the current server belonging to the 1511 release

$s = Get-WsusServer

$s.SearchUpdates(“version 1511, 10586”) | foreach { $s.DeleteUpdate($_.Id.UpdateId) } 

// enable Upgrades classification

Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq “Upgrades”} | Set-WsusClassification 

// perform full sync

$sub = $s.GetSubscription()

$sub.StartSynchronization()

Comments

  • Anonymous
    August 20, 2016
    What about for the 1607 upgrade?
  • Anonymous
    August 30, 2016
    The comment has been removed
  • Anonymous
    October 21, 2016
    Thank you for this!
  • Anonymous
    November 03, 2016
    Dont You forgot the N-versions of the upgrade. I ran the script and none of the N-versions was removed.Anyway. I used the script and removed every "Upgrades".And resynced. And my SCCM CB still return errors and stops synching after 5 errors in the "Upgrades".For months I have searched for a solution.From the wsyncmgr logsync: SMS synchronizing updates, processed 0 out of 504 items (0%) SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Synchronizing update 3b0c6e11-eae6-4df6-9946-0f350283267f - Upgrade to Windows 10 Pro N, version 1511, 10586 - en-us, Volume SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Failed to sync update 3b0c6e11-eae6-4df6-9946-0f350283267f. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Synchronizing update 690f3a0a-81f1-4b7a-92be-c7e28857f34f - Upgrade to Windows 10 Pro N, version 1511, 10586 - en-us, Retail SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Failed to sync update 690f3a0a-81f1-4b7a-92be-c7e28857f34f. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Synchronizing update 50b8d676-5509-4025-b3b7-fc51b7d9f473 - Upgrade to Windows 10 Pro, version 1511, 10586 - en-us, Retail SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Failed to sync update 50b8d676-5509-4025-b3b7-fc51b7d9f473. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Synchronizing update 09dc7113-fa44-4ca8-9d70-ec254d4d2f04 - Upgrade to Windows 10 Pro, version 1511, 10586 - en-us, Volume SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Failed to sync update 09dc7113-fa44-4ca8-9d70-ec254d4d2f04. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Synchronizing update c1a1ec21-8efc-4cd4-8e85-90a03fc7b0c8 - Upgrade to Windows 10 Enterprise, version 1511, 10586 - en-us, Volume SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:38 9732 (0x2604)Failed to sync update c1a1ec21-8efc-4cd4-8e85-90a03fc7b0c8. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Too many consecutive failures. Aborting sync. SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Sync failures summary: SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Failed to sync update 690f3a0a-81f1-4b7a-92be-c7e28857f34f. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Failed to sync update 09dc7113-fa44-4ca8-9d70-ec254d4d2f04. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Failed to sync update c1a1ec21-8efc-4cd4-8e85-90a03fc7b0c8. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Failed to sync update 50b8d676-5509-4025-b3b7-fc51b7d9f473. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Failed to sync update 3b0c6e11-eae6-4df6-9946-0f350283267f. Error: The Microsoft Software License Terms have not been completely downloaded andcannot be accepted. Source: Microsoft.UpdateServices.Internal.BaseApi.LicenseAgreement.GetById SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 9732 (0x2604)Sync failed: Failed to sync some of the updates. Source: Microsoft.SystemsManagementServer.SoftwareUpdatesManagement.WsusSyncAction.WSyncAction.SyncUpdates SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 5388 (0x150C)STATMSG: ID=6703 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=SCCM2012.hj-gym.local SITE=HGY PID=2548 TID=5388 GMTDATE=Wed Nov 02 16:04:39.913 2016 ISTR0="Microsoft.SystemsManagementServer.SoftwareUpdatesManagement.WsusSyncAction.WSyncAction.SyncUpdates" ISTR1="Failed to sync some of the updates" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 5388 (0x150C)Sync failed. Maximum number of retrys reached. Sync will not retry further. SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 5388 (0x150C)Setting sync alert to active state on site HGY SMS_WSUS_SYNC_MANAGER 11/2/2016 17:04:39 5388 (0x150C)
    • Anonymous
      December 21, 2016
      Same here did you find a solution?