Se ((get-service MSExchangeRepl | dove {$_.name - eq "MSExchangeRepl"})) { aggiornamento MSExchangeReplService } Else { installazione ...

Se ((get-service MSExchangeRepl * | dove {$_.name - eq "MSExchangeRepl"}))          {          aggiornamento MSExchangeReplService          }          Else          {          installazione MSExchangeReplService          }          Se (($true $RoleIsDatacenter - eq)- o ($true $RoleIsDatacenterDedicated - eq))          {            [stringa] $version = [Microsoft.Exchange.Diagnostics.BuildVersionConstants]::RegistryVersionSubKey            $isKernelWatchDogEnabled = [int] 1;            ItemProperty set-percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\Parameters"-nome "78341438-9b4a-4554-bbff-fd3ac2b5bbe3"-valore $isKernelWatchDogEnabled                        ItemProperty set-percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\Parameters"-"DatabaseHealthTrackerDisabled" il nome-valore 0                        ItemProperty set-percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\Parameters"-"AutoDagUseServerConfiguredProperty" il nome-valore 1            ItemProperty set-percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\Parameters"-"AutoReseedDbFailedSuspendedUseNeighborsForDbGroups" il nome-valore 1                        Se (! (Test-Path "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$version
eplay\AutoReseed"))            {                Nuovo elemento - percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\AutoReseed"            }Nuovo ItemProperty-percorso "HKLM:\SOFTWARE\Microsoft\ExchangeServer\$ version
eplay\AutoReseed"-'ConfigureMountPointsPostReInstall' - PropertyType DWord di nome-valore 1          }