More on Parameter Values
When used in a script, parameter values for the New-Mailbox cmdlet can be supplied as part of a CSV
file, as prompted input from the command line when the script is run, or as a static value inside the script.
Some parameter values such as the ones used in the simplebulk-newmailbox.ps1 script are always
required by New-Mailbox and cannot be omitted. Some are optional and can be used according to their
need. There are certain parameters that are exclusive and cannot be used in conjunction with some others.
The following table describes in detail the parameters for New-Mailbox as they relate to being used in a script.
Parameter Description
Required: these parameters must always be used and supplied in the CSV file unless otherwise noted.
Name Must be unique.
Database Must already exist.
Password Must comply with length and complexity requirements.
Not required when creating a disabled account
(linked, shared, room, and equipment mailboxes).
OrganizationalUnit Must already exist.
UserPrincipalName Should use valid UPN suffix (no validation).
Recommended: you should use these parameters as best practice.
FirstName Is null on the new account unless supplied in CSV file.
LastName Is null on the new account unless supplied in CSV file.
Chapter 15: User, Group, and Public Folder Administration
429
Parameter Description
ResetPasswordOnNextLogon Use when creating enabled accounts.
Pages:
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584