You should have an output showing the list of new hires correctly
displayed. Next, as discussed earlier in the chapter, you create a temporary password that can be
changed by the users at first logon. These steps are shown in Figure 4 - 34 .
Part I: PowerShell for Exchange Fundamentals
132
Figure 4-34
Notice that next we passed the output of the Import-CSV cmdlet to the New-Mailbox cmdlet in such a
way that it loops through each new hire creating the mailbox with the parameters specified. In doing this
the ForEach statement came in handy. Finally, we verified that the mailboxes were created.
Now imagine that these new hires numbered 100 or greater. You now begin to see how much time the
Exchange Management Shell can save the administrator.
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.
Pages:
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230