
Chapter 4: Working with User and Group Objects
133
Working with Templates
Now suppose that these mailboxes were to be created with specific settings; for example, users in the
Engineering department were to have a larger email SendQuota than those in the Finance department.
Creating mailboxes to these specifications could become overwhelming. Here is where the use of
templates comes in handy. The Exchange Management Shell lets you use templates by supporting the
TemplateInstance parameter on most cmdlets. The administrator can create a template for each
department, then create the users based on this template. To accomplish this, first you create a template
user for the Engineering department using the
New-Mailbox cmdlet, and next you use the
Set-Mailbox cmdlet to customize the user settings as desired. Your next step is to assign a variable to
the template user created. These steps are shown in Figure 4 - 35 .
Figure 4-35
Now that you ’ ve created your template, you return back to your CSV file. This time it ’ s another set of
new hires into various departments provided in the
NewHire1.csv file shown in Figure 4 - 36 . You need
to filter the CSV file to show just the users from the Engineering department. You can do that using
either the
Filter parameter or the Where-object cmdlets; here we used the latter:
[PS] C:\ > Import-Csv newhire1.csv | where {$_.department ...