O'Reilly logo

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition by Thomas Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Before you can use DFS to hold a DFS Namespace, you need to install the DFS Namespace feature. In step 1, you create a script block with the Install-WindowsFeature cmdlet, which looks like this:

In step 2, you look at the DFSN module and determine how many cmdlets the DFSN module contains, as follows:

In step 3, you create the folders and SMB shares on Srv1 and Srv2 that serve as the DFS Root as follows:

With the Root shares ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required