Disable-ExchangeMailbox cmdlet disables Exchange mail services for AD user. All mailbox data (emails, tasks, appointments, etc.) will be deleted.

This cmdlet supports risk-mitigation parameters.

Input parameters


Mandatory (R/O)

Restrictions/Valid Values
1 Authentication Information (all parameters)  


(aliases: GUID, DistinguishedName)

string R A property that is used for managing the user

Value of one of these parameters  can be used as Identity:

1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory

3 OriginatingServer string O

Address of the server (domain name), where the object physically exists.

Note: it is recommended to use this parameter as input to guarantee execution of operation with actual data. To get this parameter use Get-ExchangeMailbox cmdlet.

Max length is 255 symbols

Output parameters

No parameters

Examples of using Disable-ExchangeMailbox cmdlet

Disabling Exchange service for the particular user:

Disable-ExchangeMailbox -Identity "78646F86-CAFD-4BEB-BD3D-006B67675FA3"

Disabling Exchange service for users whose UPN starts with test:

Get-ExchangeMailbox test* | Disable-ExchangeMailbox -Force -Confirm:$false