Share via


Remove-ActiveSyncDevice

 

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

The Remove-ActiveSyncDevice cmdlet enables you to remove the mobile device partnership information that you specify from a user's device list that is stored in a mailbox on a computer that is running Microsoft Exchange Server 2007.

Syntax

Remove-ActiveSyncDevice -Identity <MobileDeviceIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]]

Detailed Description

The Remove-ActiveSyncDevice cmdlet enables you to remove the mobile device partnership information that you specify from a user's device list that is stored in their Exchange mailbox. This cmdlet is useful for removing devices that no longer synchronize successfully with the server.

To run the Remove-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.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Management.Tasks.MobileDeviceIdParameter

This parameter uniquely identifies the specific device partnership that is to be removed.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

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

Confirm

Optional

System.Management.Automation.SwitchParameter

This parameter causes the command to pause processing and requires that you acknowledge what the command will do before processing continues. You do not have to specify a value with the Confirm parameter.

WhatIf

Optional

System.Management.Automation.SwitchParameter

This parameter instructs the command to simulate the actions that it would take on the object. By using this parameter, you can view what changes would occur without having to apply any of those changes. You do not have to specify a value with this parameter.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

The following code example will remove the device partnership for the device WM_JeffHay.

Remove-ActiveSyncDevice -Identity WM_JeffHay