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?