Migrate WSUS to a new server

LegolasVK 0 Reputation points
2023-08-07T18:39:15.45+00:00

Hello everyone,

I have a WSUS running on a Windows server 2012R2 with a WID db, and I wanna move it to a new server running 2019.

How can we move/migrate wsus database (wid) to the new server and connect it? Is this possible?

Thanks regards

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,823 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,686 Reputation points
    2023-08-08T14:28:39.3066667+00:00

    Hello

    Thank you for your question and reaching out.

    Option 1 : Create a replica of the upstream server on the new WSUS server, and then successfully sync. Once finished, change it back. Updates from the Microsoft Update Site could be synced by the new WSUS server. Last but not least, we could direct every client to the new WSUS server.

    Option 2 : It is better to build a new Server 2019/2022 then point client to this new WSUS url using GPO.

    Option 3: https://social.technet.microsoft.com/wiki/contents/articles/508.how-to-move-wsus-from-one-server-to-another.aspx

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Wesley Li-MSFT 4,536 Reputation points Microsoft External Staff
    2023-08-08T15:09:29.0366667+00:00

    Hello

    Yes, it is possible to migrate the WSUS database from a Windows Internal Database (WID) on a Windows Server 2012 R2 to a new server running Windows Server 2019. Here are the steps you can follow to migrate the WSUS database from WID to a new server:

    1.Stop the IIS and WSUS services on the WSUS server. From PowerShell (elevated), run: Stop-Service IISADMIN and Stop-Service WsusService.

    2.Detach SUSDB from the Windows Internal Database. You can do this using SQL Management Studio by right-clicking SUSDB -> Tasks -> click Detach. Check “Drop Existing Connections” and click OK (optional, if active connections exist).

    3.Copy the SUSDB files to the new server. Copy SUSDB.mdf and SUSDB_log.ldf from the WID Data Folder (%SystemDrive%\Windows\WID\Data) to the new server.

    4.Attach SUSDB to the new server. In SQL Server Management Studio on the new server, under the Instance node, right-click Databases, and then click Attach. In the Attach Databases box, under Databases to attach, click the Add button and locate the SUSDB.mdf file (copied from the WID Folder), and then click OK.

    After completing these steps, you should be able to connect to the migrated WSUS database on your new server running Windows Server 2019.

    0 comments No comments

  3. Adam J. Marshall 9,946 Reputation points MVP
    2023-08-15T15:47:40.3+00:00

    I would recommend option 2 or 3 on my guide instead.

    https://www.ajtek.ca/wsus/how-to-migrate-or-upgrade-wsus/

    If you really want to move the SQL database itself, the information is above from Wesley

    0 comments No comments

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.