AddNamespaceFolderTarget method of the MSFT_DfsNamespaceFolderTarget class
Adds a new target for a DFS folder.
Syntax
uint32 AddNamespaceFolderTarget(
[in] string NamespacePath,
[in] string TargetPath,
[in] uint32 State,
[in] uint32 ReferralPriorityRank,
[in] sint32 ReferralPriorityClass,
[out] MSFT_DfsNamespaceFolderTarget cmdletOutput
);
Parameters
-
NamespacePath [in]
-
The Universal Naming Convention (UNC) path of the DFS folder for which to create a new target.
-
TargetPath [in]
-
The UNC path of a DFS folder to be set as the new target for the DFS folder. If the path does not already exist, the method creates a new folder for that path to become the new target.
-
State [in]
-
The state of the target of a DFS folder.
-
OFFLINE (3)
-
Not online. Referrals are disabled.
-
ONLINE (4)
-
Online. Referrals are enabled.
ReferralPriorityRank [in]
The priority rank of the target of a DFS folder.
ReferralPriorityClass [in]
The priority class of the target of a DFS folder.
Invalid (-1)
Invalid priority.
Normal (0)
Site cost, normal priority.
global-high (1)
Global, high priority.
sitecost-high (2)
Site cost, high priority.
sitecost-low (3)
Site cost, low priority.
global-low (4)
Global, low priority.
cmdletOutput [out]
When this method returns, contains output from the New-DFSNamespaceFolderTarget cmdlet. This parameter is passed uninitialized.
Remarks
The NamespacePath and TargetPath parameters have a format of \\HostName\SharedName[\ObjectName]*, where:
- The HostName component represents either the host name of a server or the domain name of a domain that hosts resources.
- The SharedName component represents the share name or the name of the resource that is being accessed.
- Each ObjectName component represents the name of a directory on the resource that is being accessed.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\dfsn |
MOF |
|
DLL |
|