@echo off :Check ::Checks if DriveShield or CornerStone is installed IF EXIST C:\storage.cen ( goto DSremove ) ELSE ( goto CScheck ) :CScheck IF EXIST C:\tornado.cen ( goto CSremove ) ELSE ( echo This script cannot detect previous Centurion Software on the system. pause ) :endCheck goto EOF :CSremove ::Removes CornerStone ::Kill running processes taskkill /f /im ctgui.exe taskkill /f /im ctsvc.exe ::Delete config files, service, driver, and GUI del /f /q /a:rhs "C:\tornado.cen" del /f /q /a:rhs "C:\pstorage.cen" del /f /q "C:\windows\ctsvc.exe" del /f /q "C:\windows\system32\drivers\ctdrvw2k.sys" del /f /q "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\CompuGuard CornerStone.lnk" ::Remove directory rd /s /q "C:\program files\centurion technologies" ::Remove Registry Values reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}" /f /v UpperFilters /t REG_MULTI_SZ /d "PartMgr" reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Centurion Technologies Service" /f reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ctdrvw2k" /f reg delete "HKEY_LOCAL_MACHINE\Software\Centurion Technologies" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B1B9175B-C35B-4AD6-B469-6E70408AC379}" /f ::Reboots the machine shutdown -f -r -t 00 :endCSremove goto EOF :DSremove ::Removes DriveShield ::Kill running processes taskkill /f /im censtat.exe taskkill /f /im ctiserv.exe ::Delete config files, service, driver, and GUI del /f /q /a:rhs "C:\storage.cen" del /f /q "C:\windows\ctiserv.exe" del /f /q "C:\windows\system32\drivers\ds2kdrv.sys" del /f /q "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\censtat.exe" ::Remove directory rd /s /q "C:\program files\centurion technologies" ::Remove Registry Values reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}" /f /v UpperFilters /t REG_MULTI_SZ /d "PartMgr" reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ctiserv" /f reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ds2kDrv" /f reg delete "HKEY_LOCAL_MACHINE\Software\Centurion Technologies" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{30D4C5D0-54F1-4F3A-9ED3-EB14CE876D77}" /f ::Reboots the machine shutdown -f -r -t 00 :endDSremove :EOF