Compartilhar via


RemoveNamespaceFolderTarget method of the MSFT_DfsNamespaceFolderTarget class

Removes a target of a DFS folder. If the target being removed is the last target of the DFS folder, the user is notified.

Syntax

uint32 RemoveNamespaceFolderTarget(
  [in] string NamespacePath,
  [in] string TargetPath
);

Parameters

NamespacePath [in]

The Universal Naming Convention (UNC) path of the DFS folder that has a target to be removed.

TargetPath [in]

The UNC path of the target of a DFS folder.

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