Batch Remove mailboxes in Exchange 2007

5 pts.
Tags:
batch remove
bulk delete
Exchange 2007
Mailbox
I have searched high and low and can not find a delete bulk mailbox with powershell example. I have been trying to put it together from several other examples but no luck do far. Here is a sample of what I have tried:

[PS] C:>$mb = Get-Mailbox -Database qt-mbx-cls.oberonmedia.localchina | select Alias | Remove-Mailbox -Identity Alias -Permanent $true -Confirm:$false -whatif

I have also tried various foreach loops, but no matter what I try, I just get errors

Any help is greatly appreciated!



Software/Hardware used:
Exchange 2007 sp1

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ig0tit
    Can you post our errors?
    65 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following