What is the difference between New-DfsnFolder and New-DfsnFolderTarget?
Both commands require both parameters, -Path
and -TargetPath
. They create the same thing. A DFS folder with a target.
So what is different?
What is the difference between New-DfsnFolder and New-DfsnFolderTarget?
Both commands require both parameters, -Path
and -TargetPath
. They create the same thing. A DFS folder with a target.
So what is different?
See below for details and examples.
New-DfsnFolder
will create a new folder, whileNew-DfsnFolderTarget
will add a target to an existing DFS namespace folder.Sources: New-DfsnFolder & New-DfsnFolderTarget
New-DfsnFolder
- Creates a folder in a DFS namespace.The command below creates a folder called
LegacySoftware
in the\\Contoso\AccountingResources
namespace. The folder target is\\Contoso-FS\AccountingLegacy
. The command enables target failback for the folder. The command includes a description for the new folder.New-DfsnFolderTarget
- Adds a target to a DFS namespace folder.The command below adds
\\Contoso-FS\Software
as a target for the DFS namespace folder\\Contoso\AccountingResources\LegacySoftware
with a referral priority of global low.