0\PowerShell.exe -PSConsoleFile
???C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1??? -noexit -command ???.
??™C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1 ??™ ???
Chapter 1: Getting Started with Windows PowerShell
7
While invoking Windows PowerShell, this command specifies a console definition file identified by
the PSConsoleFile parameter. The exshell.psc1 file contains a pointer to the Exchange
Management Shell snap - in definition stored in the Registry at HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft\PowerShell\1\PowerShellSnapIns\Microsoft.Exchange.Management
.PowerShell.Admin .
The ModuleName value stored in this location contains the path to the application extension
file Microsoft.Exchange.PowerShell.Configuration.dll , located in the %ProgramFiles%\
Microsoft\Exchange Server\Bin directory. Windows PowerShell loads this .dll file to make the
Exchange commands available.
In addition to loading the snap - in for Exchange Management Shell, the underlying command also uses
the command parameter to specify additional commands to run at startup, in this case the script file
Exchange.ps1 . This script file contains definitions for aliases, functions, and variables specific to
Figure 1-1
Part I: PowerShell for Exchange Fundamentals
8
Exchange management.
Pages:
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37