elseif ($errorlocal -eq 0)
{
$outstring = ???[SUCCESS]: Creation of mailbox enabled account
for user $($user.name) succeeded, with mailbox on database: $database???
out-file $logfile -inputobject $outstring -append
}
Part IV: Automating Administration
454
Running the bulk - newmailbox.v3.ps1 Script
Running bulk-newmailbox.v3.ps1 requires the input of two CSV files, the first for user information
and the second for mailbox database information. The mailbox database CSV file needs only one name
in the header to represent the database name property, and the values should be presented in < server
name > \ < storage group name > \ < database name > format. For example, the following would be
sufficient content to use as input:
DatabaseName
MB001\Storage Group a-f\a-f Mailbox Database
MB001\Storage Group g-k\g-k Mailbox Database
MB001\Storage Group l-p\l-p Mailbox Database
MB001\Storage Group q-z\q-z Mailbox Database
As for the user CSV input file, there is no need to include a value for Database because this is worked
out by the script.
All other features of bulk-newmailbox.v3.ps1 remain the same as those found in previous versions of
the mailbox creation script. The messages and progress indicator displayed during processing and the
success and error messages written to the log file are the same.
Pages:
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629