Se ($RoleDatacenterIsManagementForest - eq 'True') { Scrittura-ExchangeSetupLog-Info "Impostazione di configurazione web ...

Se ($RoleDatacenterIsManagementForest - eq 'True')          {              Scrittura-ExchangeSetupLog-Info "Impostazione di configurazione web per la directory virtuale /PowerShell attivare FullLanguageMode";              $powerShellVdirPath = [System.IO.Path]::Combine ((ItemProperty Get-percorso ' HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup').MsiInstallPath, "ClientAccess\PowerShell");              Se (Test-Path("$powerShellVdirPath\web.config"))              {                $webConfig = [stringa] [xml]:: join ("n", (Get-Content "$powerShellVdirPath\web.config"));                    ($webconfig.configuration.appSettings.add | dove {$_.key - eq "PSLanguageMode"}). Value = "FullLanguage";                $webconfig.Save("$powershellvdirpath\web.config");              }              Else              {                ExchangeSetupLog di scrittura-avviso "Impossibile trovare il file Web. config in $powerShellVdirPath";              }          }