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"; } }
Si ($RoleDatacenterIsManagementForest - eq "True") { Set-ThrottlingPolicyAssociation-Identity "OspAzureUser2" - ThrottlingPolicy ...
Si ($RoleDatacenterIsManagementForest - eq "True") {} $policyName = Microsoft.Exchange.Data.Directory.SystemConfiguratio ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { Add-PSSnapin Microsoft.Exchange.Management.Powershell.CentralAdmin - ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { Escritura ExchangeSetupLog-Info "Ajuste de la configuración de web para ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { Escritura ExchangeSetupLog-Info "Habilitar la autenticación básica y ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { nuevo elemento HKLM:\Software\Microsoft\ExchangeServer\v15\CentralAdmin ...
Si ($RoleDatacenterIsManagementForest - eq 'True') { Si (-no ([String]:: IsNullOrEmpty($RoleDatacenterCentralAdminDatabaseServer))) ...
Si ($RoleDatacenterIsManagementForest - eq 'True') {.$RoleBinPath\CentralAdminSetup.ps1; RemoveLocalComputerAccountFromCentralAdminServersGroup ...