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 -PrimarySmtpAddress -Alias chris -Database "Mailbox Database 1" -Name ChrisAshton -OrganizationalUnit "" -Password $password -FirstName Chris -LastName Ashton -DisplayName "Chris Ashton" -ResetPasswordOnNextLogon $True Plz have a look into: Offcourse u can bulk create mailboxes using powershell and csv file combination. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
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