Exchange Variables
Exchange Management Sell includes a set of Exchange - specific variables defined when the
Exchange.ps1 script file is loaded during startup. These variables provide an easy way to supply useful
file system path values to the command line. The three variables are $exbin (Exchange binary file
directory), $exinstall (Exchange install base directory), and $exscripts (Exchange scripts directory).
You can use any of these variables in place of the underlying value they store. For example, to change the
current location to the Exchange bin directory, simply enter cd $exbin .
Aliases
As you have already seen, aliases provide a convenient method for substituting a shorter or easier to
remember name for an underlying cmdlet. Windows PowerShell includes a host of predefined aliases. To
see a list of all aliases, simply enter dir alias: to list the contents of the Variable drive. This list
includes the alias names and their definition (the cmdlet they are tied to).
You can add your own alias definitions using the New-Alias and Set-Alias cmdlets. There are a few
simple rules to follow when creating your alias definitions:
Some predefined aliases are read - only, so you cannot redefine them or make a new alias using
the same name. You can, however, safely redefine any aliases you create.
Pages:
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97