Legacy mailboxes to user mailboxes
Hello,1) I need to provid a list of legacy mailboxes. How can I get that lsit using pwer shell command?2) from that list I will later need to change the legacy mailbox to User Mailbox.I only know how to change legacy mailbox to User Mailbox for one user but not from a list of many user (prior questions)Set-Mailbox -Identity "alias" -ApplyMandatoryProperties Can you please help me?
May 29th, 2009 1:42pm

~ First of all, Exchange 2003 mailboxes show as Legacy Mailboxes in EMC and there isn't any problem in it. ~If mailboxes are on Exchange 2007 server and shows as Legacy then it should have either created or moved with Exchange 2003 management tools which is the cause of showing it legacy. For your reference :) Now back to your answer... 1) Use below cmdlet to get the list of legacy mailboxes... Get-Mailbox -ResultSize Unlimited | Where{$_.RecipientTypeDetails -eq "LegacyMailbox"} 2) Use below cmdlet to get the list of legacy mailboxes and apply mendatory properties (But use this if you have all mailboxes on Exchange 2007 server ONLY) Get-Mailbox -ResultSize Unlimited | Where{$_.RecipientTypeDetails -eq "LegacyMailbox"} |Set-Mailbox -ApplyMandatoryProperties Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2009 3:58pm

It completely answer my Question Amit!!Just one thing : for the question 1) how can I get the resulyt in a list??I also get the belowwarning message: (what does that mean) ?SystemMailbox{0DF28BAD... SystemMailbox{0DF... rek400 unlimitedWARNING: Object corp.compamy.net/SWE/DeletedUsers/SystemMailbox{0DF28BAD-7C53-45AB-86E6-26ED4B762B48} has been corruptedand it is in an inconsistent state. The following validation errors haveoccurred:WARNING: Database is mandatory on UserMailbox.
May 29th, 2009 4:57pm

Cool... :) Here is the cmdlet to get the result in list... Get-Mailbox -ResultSize Unlimited | Where {$_.RecipientTypeDetails -eq "LegacyMailbox"} | Format-List Name -ErrorAction SilentlyContinue Which cmdlet you were running when you get the warning? Not sure why SystemMailbox shows in Deleted Users OU, it should be in "Microsoft Exchange System Objects" OU (you can see by enabling "Advance Features" in View menu of ADU&C). Has it moved during any cleanup activity in your AD? Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2009 5:08pm

got the Warining when I run that cmdlet:Get-Mailbox -ResultSize Unlimited | Where{$_.RecipientTypeDetails -eq "LegacyMailbox"}even this one:Get-Mailbox -ResultSize Unlimited | Where {$_.RecipientTypeDetails -eq "LegacyMailbox"} | Format-List Name -ErrorAction SilentlyContinuelast one Cmdlet (Get-Mailbox -ResultSize Unlimited | Where {$_.RecipientTypeDetails -eq "LegacyMailbox"} | Format-List Name -ErrorAction SilentlyContinue) gives me list name.How do I get aliases instead of List name? and Can I get that list in a notepad.txt? (promise last question in that blog ;-) )
May 29th, 2009 5:15pm

Oh yes, that is warning so it doesn't stop with -ErrorAction parameter... :) There are many way to get result in text but I like simple way of doing like we used to in DOS :) Get-Mailbox -ResultSize Unlimited | Where {$_.RecipientTypeDetails -eq "LegacyMailbox"} | Format-List Alias > c:\alias.txt Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2009 5:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics