taskkill /f /im chrome.exe
taskkill /f /im GoogleUpdate.exe
taskkill /f /im software_reporter_tool.exe
TIMEOUT /T 2 /NOBREAK >nul
rd /s /q "%programfiles(x86)%\Google"
rd /s /q "%programfiles%\Google\Chrome\Application\99.0.4844.51\Installer"
del /f /q "%programfiles%\Google\Chrome\Application\99.0.4844.51\elevation_service.exe"
del /f /q "%programfiles%\Google\Chrome\Application\99.0.4844.51\notification_helper.exe"
sc delete GoogleChromeElevationService
sc delete gupdate
sc delete gupdatem
cd %windir%\System32\Tasks
for /f "tokens=*" %%i in ('dir "GoogleUpdate*" /b') do (
schtasks /delete /tn "%%i" /f
)
rd /s /q "%userprofile%\AppData\Local\Google\Chrome\User Data\SwReporter"
mkdir "%userprofile%\AppData\Local\Google\Chrome\User Data\SwReporter"
icacls "%userprofile%\AppData\Local\Google\Chrome\User Data\SwReporter" /deny *S-1-1-0:(W,D,X,R,RX,M,F) *S-1-5-7:(W,D,X,R,RX,M,F)
rd /s /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\File System"
mkdir "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\File System"
icacls "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\File System" /deny *S-1-1-0:(W,D,X,R,RX,M,F) *S-1-5-7:(W,D,X,R,RX,M,F)
rd /s /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Service Worker"
mkdir "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Service Worker"
icacls "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Service Worker" /deny *S-1-1-0:(W,D,X,R,RX,M,F) *S-1-5-7:(W,D,X,R,RX,M,F)
pause