Wenn ($RoleDatacenterIsManagementForest - Eq 'True') { Write-ExchangeSetupLog-Info "Einstellen der Web-Konfiguration für ...

Wenn ($RoleDatacenterIsManagementForest - Eq 'True')          {              Write-ExchangeSetupLog-Info "Einstellen der Web-Konfiguration für das virtuelle Verzeichnis von /PowerShell FullLanguageMode aktivieren";              $powerShellVdirPath = [System.IO.Path]::Combine ((Get ItemProperty-Pfad ' HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup').MsiInstallPath, "ClientAccess\PowerShell");              Wenn (Test-Path("$powerShellVdirPath\web.config"))              {                $webConfig = [Xml] [String]:: Join ("'", (Get-Content "$powerShellVdirPath\web.config"));                    ($webconfig.configuration.appSettings.add |, {$_.key - Eq "PSLanguageMode"}) Wert = "FullLanguage";                $webconfig.Save("$powershellvdirpath\web.config");              }              Else              {                Write-ExchangeSetupLog-Warnung "Nicht gefunden" Web.config"unter $powerShellVdirPath";              }          }