NetDfsRemoveStdRoot function
Deletes a stand-alone Distributed File System (DFS) namespace.
Syntax
NET_API_STATUS NetDfsRemoveStdRoot( _In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_ DWORD Flags );
Parameters
- ServerName [in]
-
Pointer to a string that specifies the DFS root target server name of the stand-alone DFS namespace to be removed. This parameter is required.
- RootShare [in]
-
Pointer to a string that specifies the DFS root target share name of the stand-alone DFS namespace to be removed. This parameter is required.
- Flags [in]
-
Must be zero.
Return value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.
Remarks
The caller must have Administrator privilege on the DFS server. For more information about calling functions that require administrator privileges, see Running with Special Privileges.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Network Management Overview
- Network Management Functions
- Distributed File System (DFS) Functions
- NetDfsAddStdRoot
- NetDfsRemoveFtRoot
- NetDfsRemove