Partager via


GetNamespaceFolderTarget method of the MSFT_DfsNamespaceFolderTarget class

Retrieves the properties of the target of a DFS folder. If no target is specified, the properties of all targets of a DFS folder are retrieved.

Syntax

uint32 GetNamespaceFolderTarget(
  [in]  string                        NamespacePath,
  [in]  string                        TargetPath,
  [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 retrieved.

TargetPath [in]

The UNC path of the target of a DFS folder. If this parameter is empty, the method retrieves the properties of all folder targets for the specified DFS folder.

cmdletOutput [out]

When this method returns, contains an array that represents output from the Get-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