Taskkills should be done with Username! #106

This commit is contained in:
Michael H.G. Schmidt 2023-02-24 08:25:11 +01:00
parent df8ecb1726
commit c477fb9802
5 changed files with 5 additions and 13 deletions

View File

@ -29,9 +29,6 @@ echo Hiding activation menu in windows settings app ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^
/v SettingsPageVisibility /t REG_SZ /D "hide:activation" /f
echo Removing the missing activation watermark on desktop (System) ...
bcdedit /set TESTSIGNING OFF
echo.
echo INFO: please REBOOT your machine to activate the changes!
echo.

View File

@ -467,11 +467,6 @@ rd /S /Q "%STARTMENU%\Maintenance" 2>nul
rd /S /Q "%STARTMENU%\System Tools" 2>nul
rd /S /Q "%STARTMENU%\Windows Powershell" 2>nul
rem get rid of activation messages ...
echo Removing the activation watermark on desktop (User) ...
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" ^
/v PaintDesktopVersion /t REG_DWORD /D 0 /f
rem ... stupid OS!
rem IE is such a zombie. I's coming back all the time ...
echo Removing IE link in users start menu ...
@ -523,19 +518,19 @@ echo Setting desktop COLOUR ...
if %start_desktopinfo% == 1 (
echo Starting the Desktopinfo tool ...
taskkill /F /IM DesktopInfo64.exe 2>nul
taskkill /F /IM DesktopInfo64.exe /FI "USERNAME eq %USERNAME%" 2>nul
start /B "" %TOOLS%\desktopinfo\DesktopInfo64.exe /ini=%TOOLS%\desktopinfo\desktopinfo.ini
)
rem kill settings window
rem (in case it hasn't been killed by the modify script)
taskkill /F /IM SystemSettings.exe 2>nul
taskkill /F /IM SystemSettings.exe /FI "USERNAME eq %USERNAME%" 2>nul
goto :eof
:RESTART_EXPLORER
echo Restarting windows explorer ...
taskkill /f /im explorer.exe 2>nul
taskkill /f /im explorer.exe /FI "USERNAME eq %USERNAME%" 2>nul
ping 127.0.0.1 -n 3 >nul 2>nul
start explorer.exe
goto :eof

View File

@ -1,7 +1,7 @@
@echo off
echo killing firefox ...
taskkill /f /im firefox.exe 1>nul 2>nul
taskkill /f /im firefox.exe /FI "USERNAME eq %USERNAME%" 2>nul
echo deleting user profile ...
deltree %USERPROFILE%\AppData\Local\Mozilla

View File

@ -1,7 +1,7 @@
@echo off
echo Killing explorer ...
taskkill /f /im explorer.exe 2>nul
taskkill /f /im explorer.exe /FI "USERNAME eq %USERNAME%" 2>nul
echo sleeping 2 seconds ...
ping 127.0.0.1 -n 2 >nul 2>&1
echo starting ...