yes - pc health is a pest, and i am the pest patrol...

This commit is contained in:
Michael H.G. Schmidt 2023-01-22 15:35:39 +01:00
parent 58b371396b
commit 97cd0a8cdf

View File

@ -2,6 +2,14 @@
echo ####### %0 #######
if EXIST "%ProgramFiles%\Microsoft Update Health Tools" (
sc stop uhssvc
sc delete uhssvc
echo removing PC health update folder ...
nsudo -U:T -P:E cmd.exe /C rd /S /Q "%ProgramFiles%\Microsoft Update Health Tools" 2>nul
)
if NOT exist "%ProgramFiles%\PCHealthCheck\PCHealthCheck.exe" (
echo PC health check is NOT installed!
echo ####### %0 #######
@ -32,8 +40,5 @@ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHC" ^
echo removing link in Start menu ...
del /F "%ProgramData%\Microsoft\Windows\Start Menu\Programs\PC Health Check.lnk" 2>nul
echo removing PC health update folder ...
nsudo -U:T -P:E cmd.exe /C rd /S /Q "%ProgramFiles%\Microsoft Update Health Tools" 2>nul
echo ####### %0 #######