Remove Exchange Attributes using Power shell –Exchange 2010

Remove Exchange Attributes using Power shell –Exchange 2010

At times we have to Remove Exchange 2010 Attributes for a Corrupted Active Directory Account

Its been a tedious job to go and change every Exchange attribute to not Set,To Create a New mailbox for that Particular Active Directory Account

Also in some scenarios when Exchange 2010 Server Crashes. We have to remove those Attributes to recreate Mailboxes for those disconnected Active directory account. Where we won’t be able to create mailboxes for them

Unless we clear those Exchange attributes

If disabling the mailbox works it does the same task in the background.

 

To Simply the task and Save Time.

Simplified into a simple script. Where we can set the Exchange attributes to Null in one shot for a Specific User.

 

So Lets See how to do it.

 

Running the Script, It will ask you to Enter the Alias of the Users Active Directory Account

Download the Script

image

 

 

Now Manager Active Directory account is Free from Exchange attributes

 

We can create a New mailbox for him without any harm

Be Cautious that You will be losing his mailbox settings. which cannot be recovered

 

It makes the Following Attributes to “not set” or we can say as Null

mail
HomeMDB
HomeMTA
legacyExchangeDN
msExchMailboxAuditEnable
msExchAddressBookFlags
msExchArchiveQuota
msExchArchiveWarnQuota
msExchBypassAudit
msExchDumpsterQuota
msExchDumpsterWarningQuota
msExchHomeServerName
msExchMailboxAuditEnable
msExchMailboxAuditLogAgeLimit
msExchMailboxGuid
msExchMDBRulesQuota
msExchModerationFlags
msExchPoliciesIncluded
msExchProvisioningFlags
msExchRBACPolicyLink
msExchRecipientDisplayType
msExchRecipientTypeDetails
msExchTransportRecipientSettingsFlags
msExchUMDtmfMap
msExchUMEnabledFlags2
msExchUserAccountControl
msExchVersion
proxyAddresses
showInAddressBook
mailNickname

 

Now , New mailbox

image

 

Now the Manager account will be listed

image

image

 

 

If you are looking to do the Same task for Exchange 2003

Refer the link for attributes-

http://blogs.technet.com/b/exchange/archive/2006/10/13/3395089.aspx

 

Please test it before trying it out in Production Environment 


Regards
Satheshwaran Manoharan

Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Maheshkumar S Tiwari edited Original. Comment: Added tags

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Maheshkumar S Tiwari edited Original. Comment: Added tags

Page 1 of 1 (1 items)