Forum Discussion
Richochet_Rabbit
Jan 28, 2021Copper Contributor
Disabling AD Account and have Exchange Mailbox disabled, is this possible????
Hey, We are currently a hybrid environment, On-Prem Exchange 2016 with Office 365 for App usage. We are planning on going full 365 in the future, but this is our current run. Is there a way ...
MDadarkar
Feb 24, 2021Brass Contributor
Hi,
When you disable a mailbox, all Exchange attributes are removed from the associated user account in Active Directory.
The disconnected mailbox is hidden and marked for removal.
The disconnected mailbox is permanently deleted (purged) based on the MailboxRetention property value for the mailbox database (the default value is 30 days)
Disable-Mailbox "AliasName"
Please see below link, If you want to run the script against all Disabled users (Active Directory)..
Do not run this script in your production environment directly, first test in your LAB.
https://www.thatlazyadmin.com/bulk-disable-exchange-mailboxes/
Regards,
MD