ViewEntireForest =
$True
DefaultScope If the ViewEntireForest field is set to $True, the
Exchange Management Shell ignores this field. It is set to
null. This field stores the Recipient scope for the current
session of the Exchange Management Shell in canonical
format. For example, if the Recipient scope is set to the
ExOU OU in the ExchangeExchange.local domain, the
value for DefaultScope will be ExchangeExchange
.local/ExOU.
Figure 4-2
When the Recipient scope is changed in the Exchange Management Shell, this variable is retained until
the Exchange Management Shell is closed. The default settings are restored the next time the Exchange
Management Shell is opened. By default, the Exchange Management Shell starts with the Recipient
scope at the domain level. Neither the user account that is being used nor the Exchange servers being
managed has bearing on the default value of the Recipient scope. Changing the Recipient scope in the
Exchange Management Shell changes the set of Recipients that are returned for the Get- cmdlets of the
Recipient.
You can view or modify the Recipient scope by using available fields stored in the
$AdminSessionADSettings variable, as shown in the following table:
Table continued on following page
Part I: PowerShell for Exchange Fundamentals
86
Field Description
PreferredGlobalCatalog If this field is specified, and if ViewEntireForest is set to
$true, the Exchange Management Shell uses the specified
global catalog server to query for Recipients.
Pages:
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160