create multiple mailboxes on Exchange 2007 using Powershell
Please see. Exchange Server 2007: Bulk creation of mailboxes using Exchange Management Shell http://exchangepedia.com/2006/11/exchange-server-2007-bulk-creation-of-mailboxes-using-exchange-management-shell.htmlJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
August 28th, 2012 2:46pm

I need to create multiple users in AD with mailboxes. I only have the users Last and First names in a text file. See example format below. Alaimo, Joseph Anderson, Kimberly Babino, Nicholas Bittiker, Cynthia Borremans, Anthony Bozek, Richard Briscoe, Kyle Brunetti, Ronald Busker, William Cantero, Jorge Chiusa, Philip Collera, Brian Daniel, Robert Del Vecchio, Robert DePiero, Joseph Dow, Christopher Easton, Kenneth Fahey, Sean Felten, John Flatt, Warren Garda, Joseph Gates, Jonathan Gilbert, Dennis Haas, Jason Halliday, Sean Hatcher, Calvin Hedges, William Hirchak, Matthew Iarussi, Joseph Justeson, Adam Karambelas, Paul Kelly, Steve Kessner, James Kyper, James Lambert, Donald Lawson, Stephen Leondike, Robert LePierre, David Licht, Daniel Longo, Eric Lyons, Zachary Mezzapelle, Stephen Midili, Joseph
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2012 2:48pm

Please see. Exchange Server 2007: Bulk creation of mailboxes using Exchange Management Shell http://exchangepedia.com/2006/11/exchange-server-2007-bulk-creation-of-mailboxes-using-exchange-management-shell.htmlJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
August 28th, 2012 2:54pm

Wouldn't that method require that I manually create all the UPN's, before I import them?
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2012 4:49pm

Yes those 3 fields are the minimum required fields, your spreadsheet is not enough. If you try to run it with your spreadsheet, the PS will error out stating that you need field X,X etc.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
August 28th, 2012 6:50pm

Yes those 3 fields are the minimum required fields, your spreadsheet is not enough. If you try to run it with your spreadsheet, the PS will error out stating that you need field X,X etc.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2012 6:58pm

[PS] C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Exchange Ser ver 2007>Import-CSV c:\temp\CreateRecipients.csv | ForEach {New-Mailbox -Alias $ _.alias -Name $_.name -userPrincipalName $_.UPN -Database hcexchsrv\First >> >> Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password $welcome1} >> New-Mailbox : Cannot bind argument to parameter 'Password' because it is null. At line:2 char:108 + Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password <<<< $welcome1} + CategoryInfo : InvalidData: (:) [New-Mailbox], ParameterBinding ValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M icrosoft.Exchange.Management.RecipientTasks.NewMailbox New-Mailbox : Cannot bind argument to parameter 'Password' because it is null. At line:2 char:108 + Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password <<<< $welcome1} + CategoryInfo : InvalidData: (:) [New-Mailbox], ParameterBinding ValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M icrosoft.Exchange.Management.RecipientTasks.NewMailbox New-Mailbox : Cannot bind argument to parameter 'Password' because it is null. At line:2 char:108 + Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password <<<< $welcome1} + CategoryInfo : InvalidData: (:) [New-Mailbox], ParameterBinding ValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M icrosoft.Exchange.Management.RecipientTasks.NewMailbox New-Mailbox : Cannot bind argument to parameter 'Password' because it is null. At line:2 char:108 + Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password <<<< $welcome1} + CategoryInfo : InvalidData: (:) [New-Mailbox], ParameterBinding ValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M icrosoft.Exchange.Management.RecipientTasks.NewMailbox New-Mailbox : Cannot bind argument to parameter 'Password' because it is null. At line:2 char:108 + Storage Group\BOCC -OrganizationalUnit co.hernando.fl.us/HERN/BOCC/FIRE/Spr ingHilllFire/Webmail -Password <<<< $welcome1} + CategoryInfo : InvalidData: (:) [New-Mailbox], ParameterBinding ValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M icrosoft.Exchange.Management.RecipientTasks.NewMailbox
August 29th, 2012 9:45am

Did you run the command below first? $Password=Read-Host Enter Password -AsSecureStringJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
August 29th, 2012 11:34am

I went back and ran it. It worked. Thanks
August 29th, 2012 1:41pm

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

Other recent topics Other recent topics