Se (-non stringa]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = 'MSExchangeTransport' get-Service ...

Se (-non [stringa]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath))                {                   $transportService = 'MSExchangeTransport' get-Service - ErrorAction SilentlyContinue                   $serviceState = 'NotInstalled'                   Se ($transportService - ne $null)                   {                      $serviceState = $transportService.Status                   }$testSpamDataFilePath = $RoleDatacenterTestSpamDataFilePath                   $exchangeServerInstallPath = (get ItemProperty HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup).MsiInstallPath$currentDataFile = percorso di join $exchangeServerInstallPath "TransportRoles\agents\Hygiene\SpamData\Current"                   Nuovo elemento - percorso $currentDataFile-tipo "directory" - ErrorAction SilentlyContinue                   Rimozione elemento $currentDataFile\ *-recurse$targetDirectory = percorso di join $exchangeServerInstallPath "TransportRoles\agents\Hygiene\SpamData\Default"                   Nuovo elemento - percorso $targetDirectory-tipo "directory" - ErrorAction SilentlyContinue                   Copia di elemento $testSpamDataFilePath\ * $targetDirectory-forzaSe ($serviceState - eq 'Esecuzione')                   {                      riavvio del servizio '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