|
224 | 224 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
225 | 225 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
226 | 226 | }
|
227 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
228 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 227 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 228 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
229 | 229 | }
|
230 | 230 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.Installing' -ActionStringValues $testItem.Configuration -Target $forestObject -ScriptBlock {
|
231 | 231 | Invoke-ExchangeSchemaUpdate @commonParam -Mode InstallSchema -SchemaOnly
|
|
238 | 238 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
239 | 239 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
240 | 240 | }
|
241 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
242 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 241 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 242 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
243 | 243 | }
|
244 | 244 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.Updating' -ActionStringValues $testItem.ADObject, $testItem.Configuration -Target $forestObject -ScriptBlock {
|
245 | 245 | Invoke-ExchangeSchemaUpdate @commonParam -Mode UpdateSchema -SchemaOnly
|
|
252 | 252 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
253 | 253 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
254 | 254 | }
|
255 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
256 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 255 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 256 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
257 | 257 | }
|
258 | 258 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.Installing' -ActionStringValues $testItem.Configuration -Target $forestObject -ScriptBlock {
|
259 | 259 | Invoke-ExchangeSchemaUpdate @commonParam -Mode Install
|
|
266 | 266 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
267 | 267 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
268 | 268 | }
|
269 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
270 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 269 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 270 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
271 | 271 | }
|
272 | 272 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.Updating' -ActionStringValues $testItem.ADObject, $testItem.Configuration -Target $forestObject -ScriptBlock {
|
273 | 273 | Invoke-ExchangeSchemaUpdate @commonParam -Mode Update
|
|
279 | 279 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
280 | 280 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
281 | 281 | }
|
282 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
283 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 282 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 283 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
284 | 284 | }
|
285 | 285 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.DisablingSplitPermissions' -ActionStringValues $testItem.Configuration -Target $Server -ScriptBlock {
|
286 | 286 | Invoke-ExchangeSchemaUpdate @commonParam -Mode DisableSplitP -AllDomains $testItem.Configuration.AllDomains
|
|
290 | 290 | if (-not (Test-ExchangeIsoPath -Session $session -Path $testItem.Configuration.LocalImagePath)) {
|
291 | 291 | Stop-PSFFunction -String 'Invoke-FMExchangeSchema.IsoPath.Missing' -StringValues $testItem.Configuration.LocalImagePath -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server
|
292 | 292 | }
|
293 |
| - if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forest)) { |
294 |
| - Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forest.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
| 293 | + if (-not (Test-ExchangeSite -Parameters $parameters -Forest $forestObject)) { |
| 294 | + Stop-PSFFunction -String 'Invoke-FMExchangeSchema.SchemaMaster.WrongSite' -StringValues $parameters.Server, $forestObject.SchemaMaster -EnableException $EnableException -Continue -Category ResourceUnavailable -Target $Server |
295 | 295 | }
|
296 | 296 | Invoke-PSFProtectedCommand -ActionString 'Invoke-FMExchangeSchema.EnablingSplitPermissions' -ActionStringValues $testItem.Configuration -Target $Server -ScriptBlock {
|
297 | 297 | Invoke-ExchangeSchemaUpdate @commonParam -Mode EnableSplitP -AllDomains $testItem.Configuration.AllDomains
|
|
0 commit comments