wdsutil delete-autoadddevices

Applies to: Windows Server 2022, 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.

Syntax

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

Parameters

Parameter Description
[/Server:<Servername>] Specifies the name of the server. 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} Specifies the type of computer to delete from the database. This type can be PendingDevices, which returns all computers in the database that have a status of pending, RejectedDevices, which returns all computers in the database that have a status of rejected, or ApprovedDevices, which returns all computers that have a status of approved.

Examples

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