Uncategorized

Uninstall Exchange 2013

Follow below steps to decommission an exchange 2013 server

Remove all Mail Boxes

  1. Get-User | Disable-Mailbox
  2. Get-Mailbox -Arbitration | Disable-Mailbox -Arbitration -DisableLastArbitrationMailboxAllowed
  3. Get-Mailbox -Monitoring | Disable-Mailbox
  4. Get-Mailbox | Get-MailboxStatistics | Where {$_.DisconnectReason -eq “Disabled” } | |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState Disabled}
  5. Get-Mailbox | Get-MailboxStatistics | where {$_.DisconnectReason -eq “SoftDeleted”} |foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

 

 

Remove all Databases

Get-MailboxDatabase | Remove-MailboxDatabase

Remove partner application configuration:

Get-PartnerApplication| Remove-PartnerApplication

Check
1. Get-Mailbox
2. Get-Mailbox -Arbitration
3. Get-Mailbox -Monitoring

Uninstall

Uninstall Exchange 2013 from Add/Remove Programs

OR

PowerShell

Setup /Mode:Uninstall /iacceptexchangeserverlicenseterms

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s