Skip to main content

Use DFS to Seamlessly Move Redirected Folders and Home Paths to a New Server – Part II

Yesterday we set of DFS on both Windows Server 2003 R2 and Windows Server 2012 R2.  Today we are going through the steps to set up our DFS Namespace and Replication so we can start the transfer of data. 

Add the DFS Namespace

On S1 (Windows Server 2013 R2), click Start à Administrator Tools à DFS Monument

Right click Namespaces and then select New Namespace.

In the Namespace Server window, type S1 and click Next

If you receive this message about the Distributed File System Service is not running, click Yes

image

In the Namespace Name and Settings window, provide the name for the namespace.  In this example, we will use UserData.

Click Edit Settings and select Administrators have full access; other users have read and write permissions

image

Click OK

Click Next

In the Namespace Type window, select Domain-based Namespace and click Next.

Click Create.

Click Close

 

Add the folder targets for both the home and the Redirected folders

Expand Namespaces and right click \\domain\UserInfo

Click New Folder

Provide the name UserHome

image

Click Add

Provide the UNC path to the shared folder for the user’s home profiles.

Click OK twice

Repeat for the redirected documents.

image

Create a replication group between S1 and S2

Go to server S2

In Server Manager click Tools à DFS Management

Right click Replication and select New Replication Group

In the Replication Group Type window, select Multipurpose Replication and click Next.

In the Name and Domain window:

                Name: UserInfoRepGroup

Click Next

In the Replication Group Members window, click Add and add in both servers.

image

Click Next

In the Topology Selection window, select Full Mesh and click Next.

Click Next in the Replication Group Schedule and Bandwidth window.

In the Primary Member window, select S1 from the drop down box and click Next.

In Folders to Replicate click Add.

(You will do this twice. Add both the home profiles and the redirected folders)

image

image

image

Click Next

On the Local Path of Home on Other Members window, you need to add a new local path for both folders on S2.

Click Edit.

Select Enable.

In the local path, enter a valid path.

image

Click OK.

You will receive this message if the path does not exists. Click Yes

image

Click Next

Repeat the process for Documents

image

Click Next

Click Create

Click Close

At this point, you must wait for a full replication. Depending on the amount of data to replicate, this can take a considerable amount of time. Be patient and do not proceed until replication completes.

This is what our configuration looks like now.

image

Tomorrow we will finish this process. We will modify our GPOs that are controlling the redirected content to focus on the new location. We will also remove the DFS replication and Namespace so we can decommission the Windows Server 2003 R2 box.

Comments

Popular posts from this blog

How to list all the AD LDS instances on a server

AD LDS allows you to provide directory services to applications that are free of the confines of Active Directory.  To list all the AD LDS instances on a server, follow this procedure: Log into the server in question Open a command prompt. Type dsdbutil and press Enter Type List Instances and press Enter . You will receive a list of the instance name, both the LDAP and SSL port numbers, the location of the database, and its status.

How to run GPResult on a remote client with PowerShell

In the past, to run the GPResult command, you would need to either physically visit this client, have the user do it, or use and RDP connection.  In all cases, this will disrupt the user.  First, you need PowerShell remoting enabled on the target machine.  You can do this via Group Policy . Open PowerShell and type this command. Invoke-Command –ScriptBlock {GPResult /r} –ComputerName <ComputerName> Replace <ComputerName> with the name of the target.  Remember, the target needs to be online and accessible to you.

Error icon when creating a GPO Preference drive map

You may not have an error at all.  Take a look at the drive mapping below. The red triangle is what threw us off.  It is not an error.  It is simply a color representation of the Replace option of the Action field in the properties of the drive mappings. Create action This give you a green triangle. The Create action creates a new mapped drive for users. Replace Action The Replace action gives you a red triangle.  This action will delete and recreate mapped drives for users. The net result of the Replace action is to overwrite all existing settings associated with the mapped drive. If the drive mapping does not exist, then the Replace action creates a new drive mapping. Update Action The Update action will have a yellow triangle. Update will modify settings of an existing mapped drive for users. This action differs from Replace in that it only updates settings defined within the preference item. All other settings remain as configured on the ma...