wdsutil 删除-autoadddeviceswdsutil delete-autoadddevices

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

从自动添加数据库中删除挂起、拒绝或批准的计算机。Deletes computers that are pending, rejected, or approved from the Auto-add database. 此数据库将有关这些计算机的信息存储在服务器上。This database stores information about these computers on the server.


wdsutil /delete-AutoaddDevices [/Server:<Server name>] /Devicetype:{PendingDevices | RejectedDevices |ApprovedDevices}


参数Parameter 说明Description
[/Server: ][/Server:] 指定服务器的名称。Specifies the name of the server. 此名称可以是 NetBIOS 名称,也可以是完全限定的域名 (FQDN) 。This can be either the NetBIOS name or the fully qualified domain name (FQDN). 如果未指定服务器名称,将使用本地服务器。If no server name is specified, the local server will be used.
/Devicetype: {PendingDevices | RejectedDevices |ApprovedDevices}/Devicetype:{PendingDevices | RejectedDevices |ApprovedDevices} 指定要从数据库中删除的计算机的类型。Specifies the type of computer to delete from the database. 这可以是以下三种类型之一:This can be any of the following three types:

- PendingDevices 返回数据库中状态为 "挂起" 的所有计算机。- PendingDevices returns all computers in the database that have a status of pending.
- RejectedDevices 返回数据库中状态为 "已拒绝" 的所有计算机。- RejectedDevices returns all computers in the database that have a status of rejected.
- ApprovedDevices 将返回状态为 "已批准" 的所有计算机。- ApprovedDevices returns all computers that have a status of approved.


若要删除所有拒绝的计算机,请键入:To delete all rejected computers, type:

wdsutil /delete-AutoaddDevices /Devicetype:RejectedDevices

若要删除所有批准的计算机,请键入:To delete all approved computers, type:

wdsutil /verbose /delete-AutoaddDevices /Server:MyWDSServer /Devicetype:ApprovedDevices

其他参考Additional References