Se (! [seqüência de caracteres]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys'; $authKeys = @ {}; $pushNotificationAuthKeysItem = get-Item $pushNotificationAuthKeysPath - ErrorAction: SilentlyContinue;Se ($pushNotificationAuthKeysItem - ne $null) { $pushNotificationAuthKeysItem | Propriedade do Select-Object - ExpandProperty | ForEach-Object ' { $keyValue = (ItemProperty get-caminho $pushNotificationAuthKeysPath-nome _ $). $_; Se (! [seqüência de caracteres]:: IsNullOrEmpty($keyValue)) { $authKeys [$_] = ConvertTo-SecureString $keyValue - AsPlainText-forçar; } } }CannedPushNotificationApp de instalação ' -AuthenticationKeys '$authKeys -Ambiente: $RoleDatacenterPushNotificationEnvironment ' -IsDedicated: $RoleIsDatacenterDedicated ' -AcsUser: $RoleDatacenterPushNotificationAcsUser ' -Região: $RoleDatacenterRegion; }
Se (! (Get-service MSExchangeDirCacheService | onde {$_.name - eq "MSExchangeDirCacheService"})) { DirectoryCacheService ...
se (! (get-service MSExchangeMigrationWorkflow | Onde {$_.name - eq "MSExchangeMigrationWorkflow"})) { instalação-MigrationWorkflowService ...
se (! (get-service MSExchangeStreamingOptics | onde {$_.name - eq "MSExchangeStreamingOptics"})) { Instalação-ExchangeStreamingOptics ...
Se (! (Get-service MSMessageTracingClient | onde {$_.name - eq "MSMessageTracingClient"})) { Stop-SetupService - ServiceName ...
Se (! seqüência de caracteres]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath ...
Se ($CreateExtraPartialTenantObjects - eq $true) { # criar a primeira caixa de correio do usuário a ser configurado por organização ...
Se ($CreateSharedConfiguration) { Gravação-ExchangeSetupLog-info "provisionamento de recursos de TemplateTenant"; Set-OrganizationFlags ...
Se ($MSExchangeAntimalwareService - ne $null- e $MSExchangeAntimalwareService.StartMode - ne "Desativado" - e $RoleStartTransportService) ...
Se ($RoleDatacenterEnableFullLanguageMode - eq "True") { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...