|
108 | 108 | Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'Server Site Assignment', $parameters.Server |
109 | 109 | Invoke-FMServer @parameters |
110 | 110 | } |
| 111 | + if ($newOptions -band [UpdateForestOptions]::ForestLevel) { |
| 112 | + if (Get-FMForestLevel) { |
| 113 | + Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'ForestLevel', $parameters.Server |
| 114 | + Invoke-FMForestLevel @parameters |
| 115 | + } |
| 116 | + else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'ForestLevel' } |
| 117 | + } |
| 118 | + if ($newOptions -band [UpdateForestOptions]::SchemaLdif) { |
| 119 | + if (Get-FMSchemaLdif) { |
| 120 | + Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'Schema (Ldif)', $parameters.Server |
| 121 | + Invoke-FMSchemaLdif @parameters |
| 122 | + } |
| 123 | + else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'Schema (Ldif)' } |
| 124 | + } |
| 125 | + if ($newOptions -band [UpdateForestOptions]::ExchangeSchema) { |
| 126 | + if (Get-FMExchangeSchema) { |
| 127 | + Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'ExchangeSchema', $parameters.Server |
| 128 | + Invoke-FMExchangeSchema @parameters |
| 129 | + } |
| 130 | + else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'ExchangeSchema' } |
| 131 | + } |
111 | 132 | if ( |
112 | 133 | ($newOptions -band [UpdateForestOptions]::Schema) -or |
113 | 134 | ($newOptions -band [UpdateForestOptions]::SchemaManage) |
|
125 | 146 | } |
126 | 147 | else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'Schema Default Permissions' } |
127 | 148 | } |
128 | | - if ($newOptions -band [UpdateForestOptions]::SchemaLdif) { |
129 | | - if (Get-FMSchemaLdif) { |
130 | | - Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'Schema (Ldif)', $parameters.Server |
131 | | - Invoke-FMSchemaLdif @parameters |
132 | | - } |
133 | | - else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'Schema (Ldif)' } |
134 | | - } |
135 | 149 | if ($newOptions -band [UpdateForestOptions]::NTAuthStore) { |
136 | 150 | if (Get-FMNTAuthStore) { |
137 | 151 | Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'NTAuthStore', $parameters.Server |
|
146 | 160 | } |
147 | 161 | else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'Certificate' } |
148 | 162 | } |
149 | | - if ($newOptions -band [UpdateForestOptions]::ForestLevel) { |
150 | | - if (Get-FMForestLevel) { |
151 | | - Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'ForestLevel', $parameters.Server |
152 | | - Invoke-FMForestLevel @parameters |
153 | | - } |
154 | | - else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'ForestLevel' } |
155 | | - } |
156 | | - if ($newOptions -band [UpdateForestOptions]::ExchangeSchema) { |
157 | | - if (Get-FMExchangeSchema) { |
158 | | - Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Executing.Invoke' -StringValues 'ExchangeSchema', $parameters.Server |
159 | | - Invoke-FMExchangeSchema @parameters |
160 | | - } |
161 | | - else { Write-PSFMessage -Level Host -String 'Invoke-AdmfForest.Skipping.Test.NoConfiguration' -StringValues 'ExchangeSchema' } |
162 | | - } |
163 | 163 | } |
164 | 164 | catch { |
165 | 165 | Write-Error $_ |
|
0 commit comments