Se (-não String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = get-Service 'MSExchangeTransport' ...

Se (-não [String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath))                {                   $transportService = get-Service 'MSExchangeTransport' - ErrorAction SilentlyContinue                   $serviceState = 'NotInstalled'                   Se ($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"                   Novo Item - caminho $currentDataFile-tipo "diretório" - ErrorAction SilentlyContinue                   Remover Item $currentDataFile\ *-recurse$targetDirectory = join-Path $exchangeServerInstallPath "TransportRoles\agents\Hygiene\SpamData\Default"                   Novo Item - caminho $targetDirectory-tipo "diretório" - ErrorAction SilentlyContinue                   Copiar Item $testSpamDataFilePath\ * $targetDirectory-forçaSe ($serviceState - eq 'Running')                   {                      Reiniciar serviço '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