Real - World PowerShell Examples
Now that we have covered some of the more advanced PowerShell techniques, let ??™ s try to apply these in
some real - world examples.
Applying Default Settings
System policies allowed an administrator to set mailbox defaults on mailbox stores just by creating a
policy with the required settings and then choosing which stores would inherit the policy settings. This
saved hours of work and also reduced the possibility of an administrator modifying the standard.
System policies don ??™ t exist in Exchange Server 2007. There isn ??™ t any specific feature that fills that need
either. However, using PowerShell you can create a very flexible system policy alternative.
Essentially the process involves creating a couple standard PowerShell scripts for each of the standards,
providing a list of stores that these standards should be applied to, and then scheduling to run the
scripts with Windows Scheduler (AT) or another scheduler program.
Part IV: Automating Administration
470
The first line of the script adds the Exchange snap - in. If you run a PowerShell script from the command
line you don ??™ t get the Exchange management snap - in, so you need to add it manually. The second line of
the script grabs the parameter that is passed to the script on the command line.
Pages:
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655