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"; } }
Se ($RoleDatacenterIsManagementForest - eq "True") { Conjunto ThrottlingPolicyAssociation-Identity "OspAzureUser2" - ThrottlingPolicy ...
Se ($RoleDatacenterIsManagementForest - eq "True") { US $OspAzureUser2 = $RoleDomainController de LinkedUser de Get - DomainController ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { Add-PSSnapin Microsoft.Exchange.Management.Powershell.CentralAdmin - ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { Gravação-ExchangeSetupLog-Info "Definindo a configuração da web para ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { Gravação-ExchangeSetupLog-Info "Habilitando a autenticação básica e ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { novo item HKLM:\Software\Microsoft\ExchangeServer\v15\CentralAdmin - ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { Se (-não ([String]:: IsNullOrEmpty($RoleDatacenterCentralAdminDatabaseServer))) ...
Se ($RoleDatacenterIsManagementForest - eq 'True') {.$RoleBinPath\CentralAdminSetup.ps1; RemoveLocalComputerAccountFromCentralAdminServersGroup ...