3. Performing Common Tasks
With
two different tools to choose from, determining which to use for a
particular task is up to the person performing the task. The decision
is based primarily on identifying which tool is most convenient for the
task. If creating a new mailbox user, it might be easier to simply log
on to the EAC through a browser and create the account, whereas
creating 100 new accounts would be easier using a script in the EMS.
Some tasks can be performed in the EAC, and all
tasks can be performed in the EMS—but for something as simple as
changing the department for a single user, determining the PowerShell
cmdlet and parameters might be more challenging than simply using the
GUI or Web interfaces.
3.1 Creating User Mailboxes
The
creation of a new user mailbox, either for an existing user or in
conjunction with the creation of a new user, is an example of a task
that can be accomplished from either the Exchange Administration Center
or the Exchange Management Shell. This section shows how to perform the
task using both tools.
Exchange Server 2013 allows for the creation of four different types of mailboxes:
• User mailbox—Owned by a user and used to send and receive messages. This mailbox cannot be used for resource scheduling.
• Room mailbox—Intended for room scheduling and not owned by a user. A user account is created with the mailbox, but the account is disabled.
• Equipment mailbox—Intended
for equipment scheduling. Like the room mailbox, this is not owned by
an active user. The associated user account that is created will
automatically be disabled.
• Linked mailbox—Accessed by a user in a separate, trusted forest.
The following examples create a user mailbox for a new user named Oscar B. Hayve.
Creating a New User Mailbox in the Exchange Administration Center
Creating a new mailbox using the GUI interface of the EAC can be accomplished by following these steps:
1. Start the Exchange Administration Center.
2. In the left navigation control area, click Recipients.
3. In the center tab, click Mailboxes.
4. On the Toolbar, click the plus (+) symbol. The New User Mailbox dialog box appears, as shown in Figure 3.
Figure 3. New User Mailbox dialog box.
5. Enter the user alias of OBHayve.
6.
Because you are creating a new user as opposed to mailbox-enabling an
existing user, click the New User option button and complete the
following fields:
• First Name—Type the first name of the user. This field is optional.
• Initials—Type the initials of the user. This field is optional.
• Last Name—Type the last name of the user. This field is optional.
• Display Name—By
default, this field is populated with the user’s first name, initials,
and last name, if entered. You can modify the name in this field or
type one manually if no previous fields were populated.
• Name—By
default, this field is populated with the user’s first name, initials,
and last name, if entered. You can modify the name in this field or
type one manually if no previous fields were populated.
• Organizational Unit—Click the Browse button to select the organizational unit where the user should reside.
• User Logon Name (User Principal Name)—This
is the name that the user uses to log on to the mailbox. The user logon
name consists of a username and a suffix. Typically, the suffix is the
domain name in which the user account resides.
• Password—Type the password that the user must use to log on to his mailbox.
• Confirm Password—Retype the password that you entered in the Password field.
• User Must Change Password at Next Logon—Select this check box if you want to require users to reset the password after their first logon (recommended).
• Specify the Mailbox Database—Click
the Browse button to display the list of available mailbox databases.
Select the mailbox database for the user’s mailbox and click OK.
• Manage Archive Storage—Check
the box labeled Create Local Archive Storage for This User, then click
the Browse button to display the list of available archive storage
databases. Select the location for the user’s archive storage and click
OK.
• Address Book Policy—Choose a different policy if multiples are defined in your organization.
7. When finished, click Save to create the new user and his or her associated mailbox.
8. The procedure is complete at this point.
Creating a New Mailbox in the Exchange Management Shell
Creating
a new mailbox from the EMS can be complicated because there are so many
parameters to consider. However, by copying the EMS command created by
the Exchange Administration Center in the previous steps, you can now
paste that command into a text editor and modify the contents, allowing
you to create your next test user.
Note that you must also remove the Password System.Security.SecureString
and ResetPasswordOnNextLogon $true
portions of the command because these were created in the EAC command to populate the password for the account.
You can create your new user, Yasmine B. Guud, by using the following command:
New-Mailbox -Name 'Yasmine B. Guud' -Alias 'YBGuud' -UserPrincipalName
'[email protected]' -SamAccountName 'YBGuud' -FirstName 'Yasmine'
-Initials 'B' -LastName 'Guud'
After
running the preceding command in the Exchange Management Shell, you are
prompted for the password. Enter the desired password (carefully, there
will not be an option to confirm it) and press Enter.
The
password has to be a secure string, so with a little extra code you can
pass an initial password as well by entering a command like the
following. You can also add the -Password
parameter to the New-Mailbox
cmdlet.
Set-Mailbox -Identity 'YBGuud' -Password (ConvertTo-SecureString -String
"P@ssword1" -AsPlainText -Force)