Using the delete-AutoaddDevices Command

Applies To: Windows Server (Semi-Annual Channel), 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:<Server name>] /Devicetype:{PendingDevices | RejectedDevices |ApprovedDevices}

Parameters

Parameter Description
[/Server:] 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 can be any of the following three types:

- PendingDevices returns all computers in the database that have a status of pending.
- RejectedDevices returns all computers in the database that have a status of rejected.
- ApprovedDevices 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

additional references

Command-Line Syntax Key Using the Approve-AutoaddDevices Command Using the get-AutoaddDevices Command Using The Reject-AutoaddDevices Command