if (-not [String]::IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = Get-Service 'MSExchangeTransport' -ErrorAction SilentlyContinue $serviceState = 'NotInstalled' if ($transportService -ne $null) { $serviceState = $transportService.Status } $testSpamDataFilePath = $RoleDatacenterTestSpamDataFilePath $exchangeServerInstallPath = (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup).MsiInstallPath $currentDataFile = Join-Path $exchangeServerInstallPath "TransportRoles\agents\Hygiene\SpamData\Current" New-Item -Path $currentDataFile -type "directory" -ErrorAction SilentlyContinue Remove-Item $currentDataFile\* -recurse $targetDirectory = Join-Path $exchangeServerInstallPath "TransportRoles\agents\Hygiene\SpamData\Default" New-Item -Path $targetDirectory -type "directory" -ErrorAction SilentlyContinue Copy-Item $testSpamDataFilePath\* $targetDirectory -Force if ($serviceState -eq 'Running') { restart-service 'MSExchangeTransport' } }
if (($RoleDatacenterIsManagementForest -eq "True") -or ($RoleDatacenterFfoEnvironment -eq "True")) { Set-User "ViewPointServiceAccount" ...
if (($RoleIsDatacenter -eq $false) -and ($RoleIsDatacenterDedicated -eq $false)) { start-SetupService -ServiceName MSExchangeEdgeSync; ...
if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true)) { if (test-ExchangeServersWriteAccess -DomainController ...
if (($server -eq $null) -and (($RoleIsDatacenter -eq $true) -or ($RoleIsDatacenterDedicated -eq $true)) -and ($RoleAllRoles ...
if (-not String]::IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = Get-Service 'MSExchangeTransport' ...
if (Get-Service EventSystem* | ?{$_.Name -eq 'EventSystem'}) { Set-Service EventSystem -StartupType Automatic Start-SetupService ...
if (Get-Service IISAdmin* | ?{$_.Name -eq 'IISAdmin'}) { Set-Service IISAdmin -StartupType Automatic Start-SetupService -ServiceName ...
If a dial plan is selected, a default hunt group will be created to associate this new UM IP gateway to the specified dial ...
If All address lists is set to Enabled, users can view all address lists. If it is set to Disabled, the user can only view ...