Si ($RoleDatacenterIsManagementForest - eq 'True') { Escritura ExchangeSetupLog-Info "Ajuste de la configuración de web para ...

Si ($RoleDatacenterIsManagementForest - eq 'True')          {              Escritura ExchangeSetupLog-Info "Ajuste de la configuración de web para el directorio virtual de /PowerShell habilitar FullLanguageMode";              $powerShellVdirPath = [System.IO.Path]::Combine ((Get-ItemProperty-ruta de acceso ' HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup').MsiInstallPath, "ClientAccess\PowerShell");              Si (Test-Path("$powerShellVdirPath\web.config"))              {                $webConfig = [xml] [string]:: join ("n", (Get-Content "$powerShellVdirPath\web.config"));                    ($webconfig.configuration.appSettings.add | donde {$_.key - eq "PSLanguageMode"}) Value = "FullLanguage";                $webconfig.Save("$powershellvdirpath\web.config");              }              Else              {                Escritura ExchangeSetupLog-advertencia "No se encontró web.config en $powerShellVdirPath";              }          }