次の方法で共有


How to move WSUS from one server to another

TipSometimes you may find that it’s necessary to move your WSUS server from one machine to another.  If this is you then here are the steps to get this done:

1. Install WSUS on the new Server just as you had installed before.

For more information on installing WSUS please check the following link for more information: https://technet.microsoft.com/en-in/library/cc708445(en-us).aspx

2. Match the Advanced Options on the old WSUS Server & the new WSUS Server

Ensure that the advanced synchronization options for express installation files and languages on the old server match the settings on the new server by following the steps below:

  1. In the WSUS console of the old WSUS server, click the Options tab, and then click Advanced in the Update Files and Languages section.
  2. In the Advanced Synchronization Settings dialog box, check the status of the settings for Download express installation files and Languages options.
  3. In the WSUS console of the new server, click the Options tab, and then click Advanced in the Update Files and Languages section.
  4. In the Advanced Synchronization Settings dialog box, make sure the settings for Download express installation files and Languages options match the selections on the old server.

3. Copy Updates from File System of the old WSUS Server to the new WSUS server*

To back up updates from file system of old WSUS server to a file, follow these steps:

  1. On your old WSUS server, click Start, and then click Run.
  2. In the Run dialog box, type ntbackup. The Backup or Restore Wizard starts by default, unless it is disabled. You can use this wizard or click the link to work in Advanced Mode and use the following steps.
  3. Click the Backup tab, and then specify the folder where updates are stored on the old WSUS server. By default, WSUS stores updates at WSUSInstallationDrive:\WSUS\WSUSContent\.
  4. In Backup media or file name, type a path and file name for the backup (.bkf) file.
  5. Click Start Backup. The Backup Job Information dialog box appears.
  6. Click Advanced. Under Backup Type, click Incremental.
  7. From the Backup Job Information dialog box, click Start Backup to start the backup operation.
  8. Once completed, move the backup file you just created to the new WSUS server.

To restore updates from a file to the file system of the new server, follow these steps:

  1. On your new WSUS server, click Start, and then click Run.
  2. In the Run dialog box, type ntbackup. The Backup or Restore Wizard starts by default, unless it is disabled. You can use this wizard or click the link to work in Advanced Mode and use the following steps.
  3. Click the Restore and Manage Media tab, and select the backup file you created on the old WSUS server. If the file does not appear, right-click File, and then click Catalog File to add the location of the file.
  4. In Restore files to, click Alternate location. This option preserves the folder structure of the updates; all folders and subfolders will appear in the folder you designate. You must maintain the directory structure for all folders under \WSUSContent.
  5. Under Alternate location, specify the folder where updates are stored on the new WSUS server. By default, WSUS stores updates at WSUSInstallationDrive:\WSUS\WSUSContent\. Updates must appear in the folder on the new WSUS server designated to hold updates; this is typically done during installation.
  6. Click Start Restore. When the Confirm Restore dialog box appears, click OK to start the restore operation.

4. Copy Metadata from the Database on the old WSUS Server to the new WSUS Server **

Note: The WSUS Setup program copies WSUSutil.exe to the file system of the WSUS server during installation. You must be a member of the local Administrators group on the WSUS server to export or import metadata; both operations can only be run from the WSUS server itself and during the import or export process, the Update Service is shut down.

To export metadata from the database of the old Microsoft Windows Server Update Services Server, follow these steps:

  1. At a command prompt on the old Microsoft Windows Server Update Services Server, navigate to the folder that contains WSUSutil.exe. (usually located at c:\Program Files\ Update Services\tools\).
  2. Type the following: wsusutil.exe export packagename logfile ...( For example: wsusutil.exe export export.cab export.log) The package (.cab file) and log file name must be unique. WSUSutil.exe creates these two files as it exports metadata from the WSUS database.
  3. Move the export package you just created to the new Microsoft Windows Server Update Services Server.

To import metadata into the database of the new Microsoft Windows Server Update Services Server, follow these steps:.

Note: It can take from 3 to 4 hours for the database to validate content that has just been imported. Please be patient.

  1. At a command prompt on the new WSUS server, navigate to the directory that contains WSUSutil.exe. Type the following: wsusutil.exe import packagename logfile ( For example: wsusutil.exe import export.cab import.log).
  2. WSUSutil.exe imports the metadata from the old WSUS server and creates a log file of the operation.

5. Point your Clients to the new WSUS Server.

Next we’ll need to change the Group policy and make it point top the new server.  To redirect Automatic Updates to a WSUS server, follow these steps:

  1. In Group Policy Object Editor, expand Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Windows Update.
  2. In the details pane, click Specify Intranet Microsoft update service location.
  3. Set the intranet update service for detecting updates box and in the Set the intranet statistics server box. With the new server details and port For example, type http(s): //newservername :Port in both boxes.

Note: For more information check https://technet.microsoft.com/en-us/library/cc720539.aspx

That’s it!

*Important:

The initial settings for access control lists differ between Windows 2000 Server and Windows Server 2003. If you are copying content from Windows 2000 Server to Windows Server 2003, you have to manually add the Network Service group to the access control list for the folder where updates are stored. Give the Network Service group Full Control.

**Important:

Never import exported data from a source that you do not trust. Importing content from a source you do not trust might compromise the security of your WSUS server.

Sudheesh Narayanaswamy | Support Engineer

Comments

  • Anonymous
    January 01, 2003
    Q.What would happen if you just. 1. Install a new wsus 3.0 sp2 on win 2008. 2. And at the initial install. You just point to the old wsus 3.0 instead off the default windows update service on the internet. 3. And select the old wsus 3.0 as it's replica partner. Then start the first time connect. After sync has finished. Pointing to the internet for it's updates by changing the options. And change the default options further to your liking. and sync again.wait wait refresh computers groups view :)I'am new sorry
  • Anonymous
    January 01, 2003
    Q.What would happen if you just. Install a new wsus 3.0 sp2 on win 2008. And at the intinial install. You just point to the old wsus 3.0 instead off the default windows update service on the internet. and select it as it's replica partner. And start the first time connect. After sync has finished.  Changing the default options to your liking. And pointing to the internet for it's updates. and sync again.
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    January 01, 2003
    I am sorry wheteher this is the right place to ask.FYI, the existing condition I have one upstream server and 3 downstream servers.  Since teh boxes are old and my boss ask me whetehr I can install WSUS3 sp2 on the VMware or HyperV?  I will keep the same as the current condition i.e., 1 upstream and 3 downstream.thanks
  • Anonymous
    January 01, 2003
    I agree with David.Rawling. This procedure does not work.Unlike David, I attempted the move between two different instances of Windows 2003, WSUS 3 SP1. Which should be more likely to work.It only successfully moved the list of patches over, the patches themselves were disconnected. i.e every patch says 'the files for this need to be downloaded'.From googling around it seems the only way to get a decent backup is just to have more that one WSUS and have them mirror each other.Restoring a backup of either the content dir or the whole WSUS dir does not work.The wsusutil.exe import command does make the patch list appear after the restore from backup.
  • Anonymous
    January 01, 2003
    I have completed the move, before pointing PC's to new server with GPO editor I opened WSUS on new server.Like David Rawling experience all updates are 'not approved'.I wondered same thing as leafer and may uninstall and try it. Will it work to mirror a WSUS server sync with old server, break mirror and point to internet.
  • Anonymous
    January 01, 2003
    I have had mixed responses from many with the Sucess and failure . Just to summaries i would feel along with the WSUSutil import - export if we use the wsusmigration tool also we can make aure that theour migration is correct.Note: Dont remove your old server unless and util you are 100 sure that the migration is completed 100%To the question leafer what i would say is this is actually to compltely remove the old server from the network. Else the approach you had said would work well . Suggestion though :)
  • Anonymous
    January 01, 2003
    I tested this in my VMWARE workstation client POC lab and it just works fine... thanks !!!
  • Anonymous
    January 01, 2003
    The comment has been removed
  • Anonymous
    October 20, 2010
    can you send me Backup and restore for WSUS with snap sort stap by stap
  • Anonymous
    October 20, 2010
    can you send me Backup and restore for WSUS with snap sort stap by stap
  • Anonymous
    January 12, 2011
    Where can i find info about how to move wsus server databases from one remote sql server 2005 to another remote sql server 2005.I found info about how to move from internal database to remote sql.
  • Anonymous
    January 17, 2011
    Small remark, export Updates View from old Wsus snap-in and import to new server. WsusContent folder just copy between servers.Old cfg: Wsus 3.0 Sp2, DB on local host SQL Server Std, Content stored localy.New cfg: Wsus 3.0 Sp2, remote DB on old SQL Server Std, Content moved (copy/paste) from old to new server drivefolder.regards
  • Anonymous
    January 18, 2011
    The comment has been removed
  • Anonymous
    September 14, 2012
    Hi, i want to move wsus 2003 to 2008 r2 permanently (both the system has installed wsus 3.0 s2.... can i do same step
  • Anonymous
    October 09, 2012
    Does this procedure require a service or server restart?Ive completed the process but im not seeing any of the computer groups from the old server.
  • Anonymous
    October 11, 2012
    The article talks about exporting metadata from the database, but not the data. Is there any need to copy all the data from the old database from the new database? Or unnecessary?
  • Anonymous
    February 05, 2014
    This worked for me. http://exchangeserverpro.com/how-to-move-wsus-30-to-a-new-server/
  • Anonymous
    July 10, 2014
    I have to change the Host name of WSUS server, What changes needs to be done after host name change so that service will not affect.
  • Anonymous
    September 28, 2014
    How to install windows updates in isolated environments? (WSUS or Configuration Manager)
    All required
  • Anonymous
    February 17, 2016
    Great article, thank you.A word of caution if migrating from an existing WSUS server to a new WSUS server. I highly recommend that you DO NOT edit the WSUS address in your companies live GPO policy during business hours. We made this mistake, and within an hour or two we got a flood of helpdesk tickets that computers were basically slowed down to crawl. Upon inspection, the svchost.exe process was maxing out the memory of the machine, and the DQL on hard disk drives were running wild anywhere from 5 to 30! Apparently the client machines running an internal database check against the new WSUS server. What for exactly, I do not know, but it was 98% read activity in the C:\Windows\Installers directory. It took older client machines (Lenovo T420 and T440 laptops, older M73 desktops with aging hard disk drives) 15 minutes to 90 minutes to complete the check. Rebooting the machines would only pick up where it left off. We had to tell our employees to patiently wait it out. It was bad to the point where just to open task manager would take over a minute. We had to give some people laptops to work in the interim until the check completed. Make the change over the weekend or after business hours!
  • Anonymous
    August 17, 2016
    I declined some superseeded updates on old WSUS server and took the backup of update files and exported the metadata, after that I restored the update files on new server and imported the metadata but those updates which I declined on old server those are still showing superseeded on new server. Please suggest, is it possible to bring those declined updates as only declined on new server.