Migrating 2008 R2 WSUS Roles to 2012 R2 WSUS with Powershell

Recently I was tasked with the job of migrating a small WSUS server from a Windows Server 2008 R2 environment, to a 2012 R2 server without the role installed yet. Naturally, I’d like to automate the process as much as possible by using Powershell to export the current environment, and move it into a new server. This can be accomplished fairly simply with the following commands. Let’s take a look at how we can do this.

Prerequisites

  • ps-remoting enabled on source server and destination server

If you have issues connecting, make sure you have the trustedhosts option for WSMan set correct:

 

Connect to your new 2012 R2 destination server:

Install the WSUS role and server migration role

 

At this point, the destination server will open a configuration wizard for WSUS. Close that, and move to your source server.

Connect to your source server and run the windows server migration PSSnapin to migrate the local users and security groups to a file we can import on the new one.

 

Import Users

Migrate Databases

Modify Group Policy settings to redirect users.

Technet Info

Share this content:

Leave a Reply

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