
Part III: Working with PowerShell in a Production Environment
394
OutFileLocation : Setting this parameter tells the cmdlet to output to details of the test
to the given location. This parameter requires the full path in the output. For example,
OutFileLocation server1 will fail. -OutFileLocation.\server1 will also fail. The only
output destinations that work are a full path,
D:\logs\server1 or \\servername\share\
server1
. If you save the files as XML, you can further manipulate them and make inserting
them into a configuration database easier.
Roles : This parameter is reserved for internal use. It specifies the role to check, however passing
any acceptable parameter to it will cause the test to run. So if you have a Mailbox server and
specify the
UnifiedMessaging option, it still runs and returns any discrepancies found.
ScanType : This parameter is reserved for internal use; it specifies the type of test to run.
The following scan types are valid:
❑ Health : Checks for misconfigurations, problems, outdated drivers, missing patches, the
last time db backups were performed, message size settings, cluster configurations, and so
on. This is the catch - all task and will find most of the problems in the environment.
❑ Perf : Runs for two hours and looks for performance problems.
❑ Permissions : Checks for missing or misconfigured permissions within AD sites, AD ...