5.1. Creating a User Account and Mailbox
Problem
You need to create a user account and a mailbox.
Solution
Using a graphical user interface
Open the Exchange-enabled version of the Active Directory Users and Computers (ADUC) snap-in (Users and Computers.msc).
Ensure that you are connected to the correct domain for the new user object.
In the left pane, browse to the appropriate container for the new user account, right-click on it, and select New→ User.
Enter the proper values for the first name, last name, full name, and user logon name and click Next.
Enter and confirm the password, set the password flags as appropriate, and click Next.
Ensure the Create an Exchange Mailbox checkbox is selected and that the alias, server, and mailbox stores are correct. Click Next.
Confirm the information and click Finish.
Using a command-line interface with dsadd
You can use the dsadd
command to add
new user accounts from the command line. Here's an example:
> dsadd user "cn=DavidR,cn=Users,dc=robichaux,dc=net" -samid "david" -fn "David" -mi "P" -ln "Robichaux" -display "David P. Robichaux" -memberof "Family" -mustchpwd yes
This creates a new user account for David. The account's SAM
ID is david@robichaux.net (which is also the UPN, since we didn't
use the -upn switch); the other
switches are self-explanatory. dsadd lets you specify a number of attribute values at creation time, including telephone and fax numbers, home directory and drive information, and password policy settings. In this case, the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access