Si (-no String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath)) { $transportService = get-Service "MSExchangeTransport" ...

Si (-no [String]:: IsNullorEmpty($RoleDatacenterTestSpamDataFilePath))                {                   $transportService = get-Service "MSExchangeTransport" - ErrorAction SilentlyContinue                   $serviceState = 'NotInstalled'                   Si ($transportService - ne $null)                   {                      $serviceState = $transportService.Status                   }$testSpamDataFilePath = $RoleDatacenterTestSpamDataFilePath                   $exchangeServerInstallPath = (get-ItemProperty HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup).MsiInstallPath$currentDataFile = "TransportRoles\agents\Hygiene\SpamData\Current" de la ruta de unión $exchangeServerInstallPath                   Nuevo elemento - ruta de acceso $currentDataFile-tipo de "directorio" - ErrorAction SilentlyContinue                   Quitar elemento $currentDataFile\ *-recurse$targetDirectory = "TransportRoles\agents\Hygiene\SpamData\Default" de la ruta de unión $exchangeServerInstallPath                   Nuevo elemento - ruta de acceso $targetDirectory-tipo de "directorio" - ErrorAction SilentlyContinue                   Copy-Item $testSpamDataFilePath\ * $targetDirectory-ForceSi ($serviceState - eq "Running")                   {                      reinicio del servicio "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