/delete-AutoAddDevices

Applies To: Windows Server 2008, Windows Server 2008 R2

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:<Server name>]

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

/approve-AutoAddDevices

/get-AutoAddDevices

/reject-AutoAddDevices