Prev | Current Page 84 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"

Exchange.Data.Directory.Management.ExchangeServer
Chapter 2: Using Exchange Management Shell
49
Name MemberType Definition
---- ---------- ----------
AdminDisplayVersion Property Microsoft.Exchange.Data.ServerV...
CurrentConfigDomainController Property System.String CurrentConfigDoma...
CurrentDomainControllers Property Microsoft.Exchange.Data.MultiVa...
...
User - Defined Variable Lifetime
User - defined variables have a lifetime of the current shell session. Once the shell is
closed, the variable definition held in memory is lost. To have user - defined variables
persist, add them to the Windows PowerShell profile to be loaded each time the shell is
started. Profiles are covered in greater detail later in this chapter.
Automatic Variables
Windows PowerShell includes a set of predefined variable definitions known as automatic variables.
Automatic variables are either dynamic or static, but always set automatically by the shell. For example,
the $PID variable stores the current process ID for the current shell session. This is a unique value set
each time the shell is started. The $PSHome variable stores the directory path where Windows PowerShell
is installed. This value is static and never changes.
To see a list of all variables and their values, enter dir variables: .


Pages:
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
AC/DC hotele Perfumy mafia poradnik sypialnia