网站首页  词典首页

请输入您要查询的函数:

 

术语 netdfsremoveftrootforced
释义 NetDfsRemoveFtRootForced
语法:
C++
NET_API_STATUS NetDfsRemoveFtRootForced(
__in LPWSTR DomainName,
__in LPWSTR ServerName,
__in LPWSTR RootShare,
__in LPWSTR FtDfsName,
__reserved DWORD Flags
);
NetDfsRemoveFtRootForced功能
从域删除指定的根对象的分布式文件系统(DFS)命名空间,即使根目标服务器脱机。如果DFS名称空间根的目标是最后被删除,删除的功能还DFS名称空间。 DFS命名空间可以被删除不先删除中的所有环节。
注意NetDfsRemoveFtRootForced函数不会更新在DFS根目标服务器注册表。有关详细信息,请参见备注部分。
参数
域名 [in]
指针指向一个字符串,它指定的Active Directory域,它包含域名的DFS名称空间被删除。此参数是必需的。
服务器名 [in]
指针指向一个字符串指定DFS根目标服务器的名称被删除。服务器必须承载域根的DFS名称空间。此参数是必需的。
RootShare [in]
指针指向一个字符串指定DFS根目录目标共享名被删除。此参数是必需的。
FtDfsName [in]
一个字符串指针,指定域的名称的DFS名称空间从中删除根目标。此参数是必需的。通常,这是一样的RootShare参数。

必须为零。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值是一个系统错误代码。对于一个错误代码的列表,请参见系统错误代码。
备注
调用者必须具有更新的目录服务的DFS容器,必须在DFS主机(根)服务器的管理员特权。
该NetDfsRemoveFtRootForced函数强行删除基于域的DFS根从DFS名称空间的目标。它用于删除基于域的DFS名称空间时的命名空间的根目标服务器不再可用(例如,因为他们已经退役)。
由于DFS根目录的目标是通过联系主域控制器(PDC)和消除DFS根目标服务器不删除,NetDfsRemoveFtRootForced不更新的根目标服务器注册表。在正常情况下,您可以删除从DFS域根通过调用函数NetDfsRemoveFtRoot根目标。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmDfs.h(包括LmDfs.h或Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
分布式文件系统(DFS)功能
NetDfsRemoveFtRoot
NetDfsAddFtRoot
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==NetDfsRemoveFtRootForced Function
Removes the specified root target from a domain-based Distributed File System (DFS) namespace, even if the root target server is offline. If the last root target of the DFS namespace is being removed, the function also deletes the DFS namespace. A DFS namespace can be deleted without first deleting all the links in it.
Note The NetDfsRemoveFtRootForced function does not update the registry on the DFS root target server. For more information, see the Remarks section.
Syntax
C++
NET_API_STATUS NetDfsRemoveFtRootForced(
__in LPWSTR DomainName,
__in LPWSTR ServerName,
__in LPWSTR RootShare,
__in LPWSTR FtDfsName,
__reserved DWORD Flags
);
Parameters
DomainName [in]
Pointer to a string that specifies the name of the Active Directory domain that contains the domain-based DFS namespace to be removed. This parameter is required.
ServerName [in]
Pointer to a string that specifies the name of the DFS root target server to be removed. The server must host a root of the domain-based DFS namespace. This parameter is required.
RootShare [in]
Pointer to a string that specifies the name of the DFS root target share to be removed. This parameter is required.
FtDfsName [in]
Pointer to a string that specifies the name of the domain-based DFS namespace from which to remove the root target. This parameter is required. Typically, it is the same as the RootShare parameter.
Flags
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 permission to update the DFS container in the directory service and must have Administrator privilege on the DFS host (root) server.
The NetDfsRemoveFtRootForced function forcibly removes a domain-based DFS root target from a DFS namespace. It is used to delete a domain-based DFS namespace when the root target servers of the namespace are no longer available (for example, because they have been decommissioned).
Because the DFS root target is removed by contacting the primary domain controller (PDC) and not by removing the DFS root target server, NetDfsRemoveFtRootForced does not update the registry of the root target server. Under normal circumstances, you can remove the root target from a DFS domain root by calling the NetDfsRemoveFtRoot function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmDfs.h (include LmDfs.h or Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Distributed File System (DFS) Functions
NetDfsRemoveFtRoot
NetDfsAddFtRoot
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb524819(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:43