w10install/scripts/uninstall-pchealth.cmd
2022-12-25 20:52:46 +01:00

23 lines
764 B
Batchfile

@echo off
echo ####### %0 #######
echo KILLING PC health check ...
taskkill /f /im PCHealthCheck.exe > NUL 2>&1
echo DELETING PC health check folder ...
rd "%ProgramFiles%\PCHealthCheck" /Q /S > NUL 2>&1
echo remove PC health check from application list ...
reg DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7B1FCD52-8F6B-4F12-A143-361EA39F5E7C}" /f > NUL 2>&1
echo removing PC health check registry keys ...
reg DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealthCheck" /f > NUL 2>&1
reg DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHC" /f > NUL 2>&1
echo removing link in Start menu ...
del /F "%ProgramData%\Microsoft\Windows\Start Menu\Programs\PC Health Check.lnk"
echo ####### %0 #######