New-DfsnFolder sets incorrect -TargetPath when linking below a root share

Environment:

Management station OS: Windows 8

Clustered File server (DFS Target) OS: Windows server 2012 datacenter

DFS root OS: Windows Server 2008 R2

Powershell:

 Name                           Value                                                             
----                           -----                                                             
PSVersion                      3.0                                                               
WSManStackVersion              3.0                                                               
SerializationVersion           1.1.0.1                                                           
CLRVersion                     4.0.30319.18046                                                   
BuildVersion                   6.2.9200.16604                                                    
PSCompatibleVersions           {1.0, 2.0, 3.0}                                                   
PSRemotingProtocolVersion      2.2

Issue: when calling:

new-dfsnfolder -path  "\\foo.com\.ExampleNamespaceAccounting\budgets\9999" -TargetPath "\\foo-cfs1\Data\9999_ACCT_BUDGET"

The -TargetPath sets incorrectly:

get-dfsnfoldertarget -path "\\foo.com\.ExampleNamespaceAccounting\Budgets\9999" | fl


Path                  : \\foo\.ExampleCanonicalNamespaceAccounting\Budgets\9999
TargetPath            : \\foo-cfs1\data
State                 : Online
ReferralPriorityClass : sitecost-normal
ReferralPriorityRank  : 0

\\foo-cfs1\data is the root share on the clustered file server.  When linking the -TargetPath to anything below the root share, it is set as the root share path instead when setting via PowerShell. Setting this through the DFS Management console on the management workstation works as expected.

Any ideas?


July 9th, 2013 12:47am

Hi,

After running new-dfsnfolder, please make sure the command works. In addition, please go through the below article:

http://blogs.technet.com/b/filecab/archive/2012/10/19/introducing-dfs-namespaces-windows-powershell-cmdlets.aspx

Regards,

Yan Li

If you have any feedback on our support, please click here .

Free Windows Admin Tool Kit Click here and download it now
July 10th, 2013 3:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics