Partager via


SetNamespaceFolderTarget method of the MSFT_DfsNamespaceFolderTarget class

Modifies the properties of the target of a DFS folder.

Syntax

uint32 SetNamespaceFolderTarget(
  [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 that has a target with properties to be modified.

TargetPath [in]

The UNC path of the target of a DFS folder.

State [in]

The new state of the target of a DFS folder.

OFFLINE (3)

Not online. Referrals are disabled.

ONLINE (4)

Online. Referrals are enabled.

ReferralPriorityRank [in]

The new priority rank of the target of a DFS folder.

ReferralPriorityClass [in]

The new 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 Set-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
DfsNCimProv.mof
DLL
DfsNCimProv.dll

See also

MSFT_DfsNamespaceFolderTarget