Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-11

The Clear-ActiveSyncDevice cmdlet enables you to delete all data from a mobile device.


Clear-ActiveSyncDevice -Identity <MobileDeviceIdParameter> [-DomainController <Fqdn>]


Parameter Required Type Description




This parameter is the identity of the device that you want to reset.




This parameter specifies the domain controller to connect to for Active Directory validation.

Detailed Description

The Clear-ActiveSyncDevice cmdlet enables you to delete all data from a mobile device the next time that the device receives data from the server that is running Microsoft Exchange Server 2007. This cmdlet sets the DeviceWipeStatus parameter to $true. The mobile device will acknowledge the cmdlet and record the time stamp in the DeviceWipeAckTime parameter.

After you run this cmdlet, you will receive a warning that states: "This command will force all the data on the device to be permanently deleted. Do you want to continue?" You must respond to the warning for the cmdlet to run on the mobile device.

To run the Clear-ActiveSyncDevice cmdlet, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Input Types

Return Types

Parameter Type Description



This is the time stamp that indicates when the remote wipe task was set.


Error Description


Exceptions Description


The following code sample clears all data from the mobile device WM_JeffHay.

Copy Code
Clear-ActiveSyncDevice -Identity WM_JeffHay