Wenn (-nicht String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = Get-Service "MSExchangeTransport" ...

Wenn (-nicht [String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath))                {                   $transportService = Get-Service "MSExchangeTransport" - ErrorAction SilentlyContinue                   $serviceState = 'NotInstalled'                   Wenn ($transportService - Ne $null)                   {                      $serviceState = $transportService.Status                   }$testSpamDataFilePath = $RoleDatacenterTestSpamDataFilePath                   $exchangeServerInstallPath = (Get-ItemProperty-HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup).MsiInstallPath$currentDataFile = $exchangeServerInstallPath Join-Path "TransportRoles\agents\Hygiene\SpamData\Current"                   Neues Element - Pfad $currentDataFile-Typ "Directory" - ErrorAction SilentlyContinue                   Remove-Element $CurrentDataFile\ *-Recurse$targetDirectory = $exchangeServerInstallPath Join-Path "TransportRoles\agents\Hygiene\SpamData\Default"                   Neues Element - Pfad $targetDirectory-Typ "Directory" - ErrorAction SilentlyContinue                   Copy-Item $TestSpamDataFilePath\ * $targetDirectory-KraftWenn ($serviceState - Eq 'Running')                   {                      Neustart-Dienst "MSExchangeTransport"                   }                }
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
Português
Portuguese
Русский
Russian