By using this site, you agree to the Privacy Policy.
Accept
EnterinITEnterinITEnterinIT
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
Reading: How to Migrate WSUS Database between two SQL Servers
Font ResizerAa
EnterinITEnterinIT
Font ResizerAa
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
  • WINDOWS
  • SCCM Query Collection List
Search
  • HOME
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Office 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Teams
  • WINDOWS
    • Windows Admin Center
    • Windows Client
    • Windows Server
  • SCCM Query Collection List
SQL Server

How to Migrate WSUS Database between two SQL Servers

Published: February 18, 2024
3 Min Read
SHARE

How to Migrate WSUS Database between two SQL Servers.

Contents
Solution 1. You have access to both SQL ServersSolution 2. You have files of WSUS Database

Solution 1. You have access to both SQL Servers

1. Run Command Prompt as Admin on your server with WSUS Role;

2. Type and execute the next command:

net stop W3SVC && net stop wuauserv && net stop WsusService 

3. Run SQL Server Management Studio on the first (old) SQL Server;

4. Navigate to your WSUS Database (by default SUSDB). Right Click and select Tasks\Detach;

5. Copy your WSUS Database and Logs files to a new location;

6. Run the new SQL Management Studio and Attach copied Database;

7. On your WSUS Server run Registry Editor and change the key:

HKLM\SOFTWARE\Microsoft\UpdateServices\Server\Setup\SqlServerNameStart

8. Change server name from old SQL Server to new;

9. Run Command Prompt as Admin on your server with WSUS Role;

10. Type the next command:

net start W3SVC && net start wuauserv && net start WsusService

11. Test, by running WSUS Console.

Solution 2. You have files of WSUS Database

In case you can’t access to SQL Server instance with WSUS database with SQL Management Studio, but DB and Logs files are available.

1. Run Command Prompt as Admin on your server with WSUS Role;

2. Type and execute the next command:

net stop W3SVC && net stop wuauserv && net stop WsusService 

5. Copy your WSUS Database and Logs files to new location;

6. Run SQL Management Studio on the new SQL Server and Attach copied Database;

7. Expand the Security, Right Click on Logins, and then select New Login;

8. Enter NT AUTHORITY\NETWORK SERVICE for the Login Name;

9. Click on User Mapping and confirm that the user has the dbo Default Schema granted on the SUSDB Database;

10. Click on OK to create the login;

11. Right Click on Logins, and then select New Login;

12. Enter {WSUS Server Name}\WSUS Administrators for the Login Name;

13. Click on User Mapping and confirm that the WSUS Administrators Group is granted access to the SUSDB Database;

14. Click on OK to create the login;

15. On your WSUS Server run Registry Editor and change key:

HKLM\SOFTWARE\Microsoft\UpdateServices\Server\Setup\SqlServerNameStart

16. Change server name from old SQL Server to new;

17. Run Command Prompt as Admin on your server with WSUS Role;

18. Type the next command:

net start W3SVC && net start wuauserv && net start WsusService

19. Test, by running WSUS Console.

TAGGED:Command Prompt (CMD)IISMicrosoft SQL ServerMicrosoft Windows ServerWSUS
Previous Article Configuration Manager Task Sequence Error Code 0x800705AA
Next Article All OUs in this domain should be protected from accidental deletion
Leave a Comment Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Translation

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
by Transposh - translation plugin for wordpress

Popular Posts

System Requirements for Windows Server 2016
Windows Server
Configuration Manager Query Collection List
Configuration Manager Query Collection List
ConfigMgr
Structured/Managed Navigation enabled on Modern Pages in Classic Team Sites
Tech
SCCM Failed to get DP locations as the expected version from MP
ConfigMgr

Recent Posts

Installing and Configuring Fail2ban for SSH Protection on Ubuntu 24.04
Linux
Enabling and Configuring FirewallD on AlmaLinux
Linux
User Creation and SSH Key Setup in AlmaLinux
Linux
How to reset password on AlmaLinux
Linux

© 2023 EnterinIT

Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?