From 7baaad9fed431d9716b3bbf23e5af6b8365600bb Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 22 Jan 2023 11:37:42 +0100 Subject: [PATCH] bugfix --- tools/logon.cmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/logon.cmd b/tools/logon.cmd index a833754..7189243 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -303,6 +303,11 @@ echo. echo Removing OneDrive link in start menu ... del /F /Q "%APPDATA%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" 2>nul +rem ... stupid OS! (it pins "dead" icons to the taskbar) +echo Removing all pinned icons from taskbar ... +reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f > NUL 2>&1 +call :RESTART_EXPLORER + rem create a statusfile (this codeblock must be executed only once per user) ... echo 1 >%USERCONFIG_DONE% @@ -428,11 +433,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 ... stupid OS! (it pins "dead" icons to the taskbar) -echo Removing all pinned icons from taskbar ... -reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f > NUL 2>&1 -call :RESTART_EXPLORER - rem ... stupid OS! rem IE is such a zombie. I's coming back all the time ... echo Removing IE link in users start menu ...