win10-prep

Batch script to tweak Windows 10 to a more usable form
Log | Files | Refs

commit 3c3a99c98f7750aa0a9a7e8546a8b782f83cada4
parent 01a0c7f6a6c35e8a6598e47e6228390d638ae883
Author: breadcat <peter@minskio.co.uk>
Date:   Sun,  5 Jul 2020 19:04:09 +0100

Suppress error on not-finding process

Diffstat:
Mwin10-prep.bat | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/win10-prep.bat b/win10-prep.bat @@ -229,7 +229,8 @@ exit /b %errorlevel% :remove_software rem remove onedrive, remove explorer tree item -taskkill /f /im onedrive.exe +tasklist /FI "IMAGENAME eq onedrive.exe" 2>NUL | find /I /N "onedrive.exe">NUL +if "%ERRORLEVEL%"=="0" echo taskkill /f /im onedrive.exe if exist "%windir%\system32\onedrivesetup.exe" "%windir%\system32\onedrivesetup.exe" /uninstall if exist "%windir%\syswow64\onedrivesetup.exe" "%windir%\syswow64\onedrivesetup.exe" /uninstall reg delete "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f