@echo off
setlocal

@REM StationManager (graceful)
taskkill /im stationmanager.exe

@REM Wait for StationManager finish trying to stop the processes before force-killing everything.
set WaitToClosePeriod=10
ping -n %WaitToClosePeriod% 127.0.0.1 >nul

@REM Aero
taskkill /fi "IMAGENAME EQ aero*" /f

@REM AirportApps
taskkill /fi "IMAGENAME EQ airportapps*" /f

@REM APM
taskkill /fi "IMAGENAME EQ airportportalapm*" /f

@REM GateReader
taskkill /fi "IMAGENAME EQ gatereader*" /f

@REM PRS
taskkill /fi "IMAGENAME EQ passportreadercommonuse*" /f

@REM QSS
taskkill /fi "IMAGENAME EQ qss*" /f

@REM PRSAttachmateHelper
taskkill /fi "IMAGENAME EQ prsattachmatehelper*" /f

@REM UASRDEV
taskkill /fi "IMAGENAME EQ uasrdev*" /f

@REM UAGRDEV
taskkill /fi "IMAGENAME EQ uagrdev*" /f

@REM InfoConnect
taskkill /im guarddog.exe /f
taskkill /im ptrstray.exe /f
taskkill /im pt32.exe     /f
taskkill /im accmgr32.exe /f
taskkill /im accsmngr.exe /f
taskkill /im spltsrvc.exe /f
taskkill /im hllwatch.exe /f
taskkill /im passport.exe /f
taskkill /im co-msr.exe   /f
taskkill /im cokeys.exe   /f
taskkill /im cokeys2.exe  /f
taskkill /im goual.exe    /f

@REM StationManager (forced)
taskkill /im stationmanager.exe /f

endlocal