if ($RoleDatacenterIsManagementForest -eq 'True') { Write-ExchangeSetupLog -Info "Setting the web config for the /PowerShell ...

if ($RoleDatacenterIsManagementForest -eq 'True')          {              Write-ExchangeSetupLog -Info "Setting the web config for the /PowerShell virtual directory to enable FullLanguageMode";              $powerShellVdirPath = [System.IO.Path]::Combine((Get-ItemProperty -path 'HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup').MsiInstallPath,"ClientAccess\PowerShell");              if (Test-Path("$powerShellVdirPath\web.config"))              {                $webConfig = [xml] [string]::join("`n", (Get-Content "$powerShellVdirPath\web.config"));                    ($webconfig.configuration.appSettings.add | where {$_.key -eq "PSLanguageMode"}).value = "FullLanguage";                $webconfig.Save("$powershellvdirpath\web.config");              }              else              {                Write-ExchangeSetupLog -Warning "Could not find web.config under $powerShellVdirPath";              }          }