From bf9dd5b5c915829ddc71b9b9c413389599b5d4e3 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 14 Feb 2021 20:35:35 +0100 Subject: [PATCH] . --- scripts/deploy/logon.cmd | 54 +++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/scripts/deploy/logon.cmd b/scripts/deploy/logon.cmd index 3cd4195..0af26b7 100644 --- a/scripts/deploy/logon.cmd +++ b/scripts/deploy/logon.cmd @@ -3,21 +3,6 @@ set TOOLS=c:\tools echo ####### %0 ####### -echo add "This PC" icon for current user on desktop Windows 10 ... -reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" ^ - /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f 1>nul -reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ^ - /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f 1>nul - -echo add userhome icon on windows 10 desktop for current user ... -reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" ^ - /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f 1>nul -reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ^ - /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f 1>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - echo removing wallpaper ... reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters @@ -28,9 +13,8 @@ echo set desktop colour ... echo starting BGInfo ... %TOOLS%\bginfo\bginfo64.exe %TOOLS%\bginfo\config.bgi /NOLICPROMPT /silent /timer:0 - -rem ##### rem ##### +rem ##### USER CONFIG FILES rem ##### echo creating some directories and copy files for current user ... @@ -64,8 +48,25 @@ if NOT EXIST %LOCALSTATE%\settings.json ( ) rem ##### +rem ##### USER TWEAKS rem ##### -rem ##### + +if EXIST %LOCALAPPDATA%\.user_settings_done GOTO END + +echo add "This PC" icon for current user on desktop Windows 10 ... +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" ^ + /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f 1>nul +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ^ + /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f 1>nul + +echo add userhome icon on windows 10 desktop for current user ... +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" ^ + /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f 1>nul +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ^ + /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f 1>nul + +echo refresh desktop (W10 style) +ie4uinit.exe -show echo disable search box on taskbar ... reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" ^ @@ -87,6 +88,7 @@ echo disable notification center ... reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer" ^ /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f 1>nul +echo removing pinned apps from taskbar ... del /F /S /Q /A "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*" reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f @@ -94,19 +96,21 @@ echo restarting explorer ... taskkill /f /im explorer.exe 1>nul 2>nul start explorer.exe -rem ##### -rem ##### -rem ##### - - -rem deleting useless files (FUCK YOU AGAIN MICROSOFT!) ... +rem try to delete some useless files ... del /F "$APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" 1>nul 2>nul del /F "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 1>nul 2>nul del /F "%USERPROFILE%\Desktop\Microsoft Edge.lnk" 1>nul 2>nul -echo start workstation service ... +echo 1 >%LOCALAPPDATA%\user_settings_done + +rem ##### +rem ##### +rem ##### + +echo starting workstation service ... net start workstation 1>nul 2>nul net config workstation +:END echo ####### %0 #######