Exchange 2010: How to create a new mailbox enabled user in a specific OU
Hello, we are using Exchange 2010 in a Windows 2008 R2 domain. How can I create a new user in a specific OU (eventually with all needed distribution/security groups) with a mailbox via powershell? When moving the user after creation from the default OU "users" to the specific OU, the default e-mail-addresspolicies is used, which we don't need. greetings Stefan
July 22nd, 2010 5:45pm

Hi, U can use: $password = Read-Host "Enter password" -AsSecureString; New-Mailbox -UserPrincipalName user@domain.com -PrimarySmtpAddress user@domain.com -Alias chris -Database "Mailbox Database 1" -Name ChrisAshton -OrganizationalUnit "YourDomain.com/OU" -Password $password -FirstName Chris -LastName Ashton -DisplayName "Chris Ashton" -ResetPasswordOnNextLogon $True Plz have a look into: http://technet.microsoft.com/en-us/library/aa997663.aspx Offcourse u can bulk create mailboxes using powershell and csv file combination. http://www.exchangeninjas.com/bulkcreatemailboxes http://powershell.com/cs/forums/p/1946/2686.aspx Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2010 5:54pm

Hello Laeeq, thank you very much. I'll have a look at the links. greetings Stefan
July 22nd, 2010 6:01pm

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

Other recent topics Other recent topics