create mailboxes for existing users exchange 2010
We are on a hostted enviroment and we will be bringing Exhange 2010 in house. I need to know via EMS how to create accounts for ALL users. I am not looking to do this by OU as this will take a long time. I need to do it for the whole organization. Any
help would be appreciated.
December 6th, 2011 10:27pm
Hi
Here is the command you can use to create mailbox for all users in the domain,
get-user | where-object{$_.RecipientType –eq “User”} | Enable-Mailbox
If you would like to create maibox for
Sales Department,you can use the command below:
get-user | where-object{$_.RecipientType –eq “User” -and $_.department –eq “Sales”} | Enable-Mailbox
Also, the property of the mailbox such as Database, DisplayName, you can have a view on
Enable-Mailbox
http://technet.microsoft.com/en-us/library/aa998251.aspx
Cheers
Zi Feng
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2011 10:53pm
Thanks for the response. I am aware of that command but I have alot of OU's. Isn't there a way to do it globally instead of having to do each OU?
Thanks
December 10th, 2011 8:34pm
The Get-User will get all the users and not just from some particular OU. In Above command
there is nowhere OU filter specified.Jasjit Singh Dhindsa | ITIL v3 | IASA Foundation Certified | MCITP: EMA 2010/2007 | MCTS: MES 2010/2007, OCS 2007 | MCSA: M+S | MCSE: M+S
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2011 2:54am
So I would just do:
get-user | where-object{$_.RecipientType –eq “User” | Enable Mailbox
December 11th, 2011 9:39am
So I would just do:
get-user | where-object{$_.RecipientType –eq “User” | Enable Mailbox
Yes thats correct. It will create mailbox for all AD objects of type UserJasjit Singh Dhindsa | ITIL v3 | IASA Foundation Certified | MCITP: EMA 2010/2007 | MCTS: MES 2010/2007, OCS 2007 | MCSA: M+S | MCSE: M+S
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2011 9:52am
Thank you guys for all your help... Its appreciated.
December 11th, 2011 12:13pm