How it works...

In step 1, you install the DFS-Replication feature. You need to install this on every server you plan to use in the replication. Depending on what other features you have already installed, the output can vary. Here is what the results should look like:

In step 2, you turn on the administrative shares on the servers involved. There is no output from this step. In step 3, you examine the DFS Replication cmdlets contained in the DFSR module. As you can see, after running step 1, you have the DFSR module, and that it contains 45 cmdlets, as follows:

With step 4, you create two replication groups: one for the shares on FS1 and ...

Get Windows Server 2016 Automation with PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.