WSUS import - replacing a database

Tony Gedge 241 Reputation points
2020-08-07T01:56:21.577+00:00

I have a offline WSUS server which we routinely load exported metadata and content into.

Recently, I had a bad export which when imported into the offline server was missing some content files. I elected to import an older "known good" export to recover. When I did this, I discovered that the import process is "additional" in nature (not replacement), so while I had the metadata from the "known good" export, I also had metadata from the later export as well.

Is there a way to perform a "replacement" style import into WSUS?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,136 questions
{count} votes

Accepted answer
  1. Adam J. Marshall 9,391 Reputation points MVP
    2020-08-21T12:08:15.147+00:00

    Uninstall and re-install the disconnected WSUS server
    https://www.ajtek.ca/wsus/how-to-remove-wsus-completely-and-reinstall-it/

    Load back the database that you have. If you encounter the SAME issue, the files from the upstream are missing or corrupted and you should run a wsusutil reset on the upstream to fix that.


4 additional answers

Sort by: Most helpful
  1. Rita Hu -MSFT 9,641 Reputation points
    2020-08-11T08:09:31.697+00:00

    Hi TonyGedge-0532,

    It seems there is no update for a couple of days. May we know the current status of the problem? Is there any other assistance we can provide?

    If you have any questions, please keep us in touch.

    Regards,
    Rita

    0 comments No comments

  2. Tony Gedge 241 Reputation points
    2020-08-18T08:38:17.513+00:00

    The sequence is like this:

    1. Export "May" updates from online WSUS
    2. Import "May" updates into offline WSUS
    3. Apply patches in offline environment - works OK
    4. Export "June" patches from online WSUS
    5. Import "June" updates into offline WSUS - WSUS shows missing content files (probably a export error)
    6. Import "May" updates into offline WSUS - WSUS shows missing content files

    I had thought the import was "replacement" but this isn't the case. How can be "reset" the database so that the import can be redone?

    0 comments No comments

  3. Rita Hu -MSFT 9,641 Reputation points
    2020-08-19T03:18:39.727+00:00

    Hi TonyGedge-0532,

    It seems the there are missing content files in the export WSUS Server. We could run the wsusutil.exe reset command first and then export updates files. Here are related operations for your reference:

    1. Open the CMD as an administrator and navigate to the wsusutil.exe tool(Location: C:\Program Files\Update Services\Tools)
    2. Enter the command: wsusutil.exe reset

    Note:
    18627-22.png

    Reference picture:
    18606-21.png

    Please remember to mark the answer if they are helpful.

    Regards,
    Rita

    0 comments No comments

  4. Tony Gedge 241 Reputation points
    2020-08-21T03:56:44.73+00:00

    I am aware of what wsusutil reset does.

    Unfortunately I don't want to put additional content to match the metadata. I want to replace the current metadata with the exported set of metadata.

    From the observed behaviour, it would appear that the wsusutil import process only adds the metadata to the database and does not remove metadata which exists in the database but does not exist in the import.

    How can I get the metadata in WSUS to match exactly with the imported metadata?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.