Se ($RoleDatacenterIsManagementForest - eq 'True') { Gravação-ExchangeSetupLog-Info "Definindo a configuração da web para ...

Se ($RoleDatacenterIsManagementForest - eq 'True')          {              Gravação-ExchangeSetupLog-Info "Definindo a configuração da web para o diretório virtual /PowerShell habilitar FullLanguageMode";              $powerShellVdirPath = [System.IO.Path]::Combine ((ItemProperty Get-caminho ' HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup').MsiInstallPath, "ClientAccess\PowerShell");              Se (Test-Path("$powerShellVdirPath\web.config"))              {                $webConfig = [xml] [string]:: join ("p", (Get-Content "$powerShellVdirPath\web.config"));                    ($webconfig.configuration.appSettings.add | onde {$_.key - eq "PSLanguageMode"}) valorizam = "FullLanguage";                $webconfig.Save("$powershellvdirpath\web.config");              }              pessoa              {                ExchangeSetupLog de gravação-aviso "Não foi possível localizar Web. config em $powerShellVdirPath";              }          }