Windows Update Server - Deleting old computers and getting SQL database error

Gary Beamer 1 Reputation point
2021-09-27T14:27:16.813+00:00

I have windows server 2012 R2 with the original database version that comes with the software install. I installed it as the Windows internal database. When ever I try to delete a computer that has failed updates from the WSUS wizard or screen the connection to the database drops. Now I I have loaded SQL Managment Studio and connected to the SUSDB in an attempt to delete computers from there. However, now I get this error. What do I need to do so that I can remove these devices? This happens even if I try to delete one at a time. I also only seem to get this issue deleting failed computers. Not nearly as much if at all when deleting a machine that has successfully install the updates or no errors.

135595-image.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,127 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rita Hu -MSFT 9,626 Reputation points
    2021-09-29T01:42:43.867+00:00

    @Gary Beamer
    Thanks for your posting on Q&A.

    Please run the below PowerShell script to remove the obsolete computers.
    https://github.com/djdomi/WSUS-Cleanup-Scripts/blob/master/wsus-cleanup-updates-v4.ps1

    We recommend to run the script to avoid Server Cleanup Wizard timed-out.
    136101-12.png

    Hope the above will be helpful. Please feel free to keep us in touch if there are any updates of the case.

    Regards,
    Rita


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Pierre-Luc Giguere 1,076 Reputation points
    2021-09-27T14:37:23.11+00:00

    Hi,

    I would recommend doing 2 things:

    1. Run the Server cleanup Wizard
      https://learn.microsoft.com/en-us/windows-server/administration/windows-server-update-services/manage/the-server-cleanup-wizard
    2. Reindex the WSUS datase:
      https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/reindex-the-wsus-database

    Please let me know if my solution worked for you.


  3. Adam J. Marshall 8,626 Reputation points MVP
    2021-09-27T14:39:44.63+00:00