Clear-ActiveSyncDevice (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

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

Syntax

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

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.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Management.Tasks.MobileDeviceIdParameter

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

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

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

Input Types

Return Types

Parameter Type Description

 DeviceWipeSetTime

System.DateTime

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

Errors

Error Description

Exceptions

Exceptions Description

Example

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

Clear-ActiveSyncDevice -Identity WM_JeffHay