Si ((get-service MSExchangeRepl * | donde {$_.name - eq "MSExchangeRepl"})) { actualización MSExchangeReplService } Else { instalar MSExchangeReplService } Si (($RoleIsDatacenter - eq $true)- o ($RoleIsDatacenterDedicated - eq $true)) { [cadena] $version = [Microsoft.Exchange.Diagnostics.BuildVersionConstants]::RegistryVersionSubKey $isKernelWatchDogEnabled = [int] 1; Set-ItemProperty-path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\Parameters"-nombre "78341438-9b4a-4554-bbff-fd3ac2b5bbe3"-$isKernelWatchDogEnabled de valor Set-ItemProperty-path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\Parameters"-el nombre "DatabaseHealthTrackerDisabled"-valor 0 Set-ItemProperty-path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\Parameters"-el nombre "AutoDagUseServerConfiguredProperty"-valor 1 Set-ItemProperty-path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\Parameters"-el nombre "AutoReseedDbFailedSuspendedUseNeighborsForDbGroups"-valor 1 Si (! ()Test-Path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$version eplay\AutoReseed")) { Nuevo elemento - ruta de acceso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\AutoReseed" }Nuevo ItemProperty-Path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version eplay\AutoReseed"-nombre 'ConfigureMountPointsPostReInstall' - PropertyType DWord-valor 1 }
Si (($RoleDatacenterIsManagementForest - eq "True")- o ($RoleDatacenterFfoEnvironment - eq "True")) { Conjunto de usuario ...
Si (($RoleDatacenterIsManagementForest - eq "True")- o ($RoleDatacenterFfoEnvironment - eq "True")) { Set-ThrottlingPolicyAssociation-Identity ...
Si (($RoleIsDatacenter - eq $false)- y ($RoleIsDatacenterDedicated - eq $false)) { inicio-SetupService - ServiceName MSExchangeEdgeSync; ...
Si (($server - eq $null)- y (($RoleIsDatacenter - eq $true)- o ($RoleIsDatacenterDedicated - eq $true))- y ($RoleAllRoles ...
Si ((get-service MSExchangeRepl | donde {$_.name - eq "MSExchangeRepl"})) { actualización MSExchangeReplService } Else { ...
Si (-no String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = get-Service "MSExchangeTransport" ...
Si (EC - $RoleHotmailMigration $true- o $ServicePlanSettings.Organization.AddOutlookAcceptedDomains) { Nuevo-AcceptedDomain-outlook.com ...
Si (EC - $RoleHotmailMigration $true- o $ServicePlanSettings.Organization.OpenDomainRoutingEnabled) { Set-Transportconfig ...
Si (Get-Service EventSystem |? {}$_.Nombre - eq 'EventSystem'}) { Set-Service EventSystem StartupType - automático Inicio-SetupService ...