วิธีโยกย้ายฐานข้อมูล WSUS ระหว่างเซิร์ฟเวอร์ SQL สองเครื่อง.
สารละลาย 1. You have access to both SQL Servers
1. วิ่ง 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;
4. Navigate to your WSUS Database (by default SUSDB). Right Click and select Tasks\Detach;
5. Copy your WSUS Database และ Logs files to a new location;
6. Run the new SQL Management Studio and Attach copied Database;
7. On your WSUS Server run ตัวแก้ไขรีจิสทรี and change the key:
HKLM\SOFTWARE\Microsoft\UpdateServices\Server\Setup\SqlServerNameStart
8. Change server name from old SQL Server to new;
9. วิ่ง Command Prompt as Admin on your server with WSUS Role;
10. พิมพ์คำสั่งถัดไป:
net start W3SVC && net start wuauserv && net start WsusService
11. Test, by running คอนโซล WSUS.
สารละลาย 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. วิ่ง 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 และ Logs files to new location;
6. Run SQL Management Studio on the new SQL Server and Attach copied Database;
7. Expand theความปลอดภัย, คลิกขวาที่Logins, จากนั้นเลือกNew Login;
8. เข้าNT AUTHORITY\NETWORK SERVICE for the Login Name;
9. คลิกที่User Mapping and confirm that the user has thedbo Default Schema granted on theสสส Database;
10. คลิกที่ตกลง to create the login;
11. คลิกขวาที่Logins, จากนั้นเลือกNew Login;
12. เข้า{WSUS Server Name}\WSUS Administrators for theLogin Name;
13. คลิกที่User Mapping and confirm that the WSUS Administrators Group is granted access to theสสส Database;
14. คลิกที่ตกลง to create the login;
15. On your WSUS Server run ตัวแก้ไขรีจิสทรี and change key:
HKLM\SOFTWARE\Microsoft\UpdateServices\Server\Setup\SqlServerNameStart
16. Change server name from old SQL Server to new;
17. วิ่ง Command Prompt as Admin on your server with WSUS Role;
18. พิมพ์คำสั่งถัดไป:
net start W3SVC && net start wuauserv && net start WsusService
19. Test, by running คอนโซล WSUS.