Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic



Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

Topic Last Modified: 2007-10-22

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

Clear-ActiveSyncDevice -Identity <MobileDeviceIdParameter> [-Cancel <$true | $false>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-NotificationEmailAddresses <MultiValuedProperty>] [-WhatIf [<SwitchParameter>]]

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 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 2007, see Permission Considerations.


Parameter Required Type Description




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




This parameter specifies whether the Clear-ActiveSyncDevice cmdlet should be canceled. If you use the Cancel parameter with the Clear-ActiveSyncDevice cmdlet, a cancellation request will be issued for the remote device wipe.




This parameter specifies whether confirmation is required for the remote device wipe. If set to $true, a confirmation e-mail message will be sent to the notification e-mail address and to the device owner when the remote device wipe is completed.




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




This parameter specifies the notification e-mail address for the remote device wipe confirmation.




This parameter instructs the cmdlet to simulate the actions that it would take on an object. By using the WhatIf parameter, you can view the changes that would occur without having to apply any of those changes. The default value is $false.


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.

Clear-ActiveSyncDevice -Identity WM_JeffHay
To ensure that you are reading the most up-to-date information and to find additional Exchange Server 2007 documentation, visit the Exchange Server TechCenter.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.