From 5004885bc3242816f4628afa800b83231987ae70 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 12:26:16 +0200 Subject: [PATCH 1/9] some tweaks --- W10Privacy.ini | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/W10Privacy.ini b/W10Privacy.ini index 641803e..3086fcd 100755 --- a/W10Privacy.ini +++ b/W10Privacy.ini @@ -6,11 +6,11 @@ _kundenzufriedenheit=1 _benutzeraktivitaeten=1 _schreibverhalten=1 _sprachliste=1 -_positionserkennung=1 -_positionserkennung_benutzer=0 +_positionserkennung=0 +_positionserkennung_benutzer=1 _spracherkennung=1 _feedback=1 -_diagnose=0 +_diagnose=1 _diagnosedaten_verwenden=1 _startmenu_vorschlaege=1 _kamera_sperrbildschirm=1 @@ -202,7 +202,7 @@ _edge_shoppingassistant_user=1 _edge_localproviders=0 _edge_localproviders_user=1 _edge_prelaunch=1 -_edge_startupboost=0 +_edge_startupboost=1 _edge_tab_preloader=1 _edge_hubssidebar=1 _edge_follow=0 @@ -250,7 +250,7 @@ _biometrische_anmeldung=1 _energiesparen=1 _ruhezustand=1 _treiberinstallation=0 -_superfetch=0 +_superfetch=1 _statusmeldungen=1 _kompatibilitaet=0 _shutdown_apps=1 From 07ab009f2b63ebd7a42defa5ce7e847c98208fcf Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 13:31:42 +0200 Subject: [PATCH 2/9] Download geek uninstaller to program files and add a shortcut --- windows11.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index fae21d8..fc21250 100644 --- a/windows11.bat +++ b/windows11.bat @@ -123,7 +123,11 @@ wsl --unregister Ubuntu :: Install Geek Uninstaller PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ - "Expand-Archive -Path $archive -DestinationPath $env:HOMEPATH\Documents\Local" + "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^ + "$WshShell = New-Object -comObject WScript.Shell;" ^ + "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Geek Uninstaller.lnk');" ^ + "$Shortcut.TargetPath = '%ProgramFiles%\Geek Uninstaller\geek.exe';" ^ + "$Shortcut.Save()" :: === Firefox configuration == "%ProgramFiles%\Mozilla Firefox\firefox.exe" From 92ad0d00ea3faa153df52dc4d54494fbe81a9a21 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 13:42:33 +0200 Subject: [PATCH 3/9] Add regkeys for geek and opentabletdriver since we install them in programfiles --- windows11.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows11.bat b/windows11.bat index fc21250..cb509ab 100644 --- a/windows11.bat +++ b/windows11.bat @@ -128,6 +128,8 @@ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Geek Uninstaller.lnk');" ^ "$Shortcut.TargetPath = '%ProgramFiles%\Geek Uninstaller\geek.exe';" ^ "$Shortcut.Save()" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "Geek Uninstaller" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller" :: === Firefox configuration == "%ProgramFiles%\Mozilla Firefox\firefox.exe" @@ -180,6 +182,8 @@ PowerShell -Command "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^ "$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^ "$Shortcut.Save()" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v DisplayName /t REG_SZ /d "OpenTabletDriver" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\OpenTabletDriver" :: WindowsInk PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%TEMP%\Driver-VMulti.zip'" From cbf7c299939fe9cacc6940d5dbb19c3245bef5b5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 13:45:03 +0200 Subject: [PATCH 4/9] use abbreviations --- windows11.bat | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/windows11.bat b/windows11.bat index cb509ab..7b3c867 100644 --- a/windows11.bat +++ b/windows11.bat @@ -22,42 +22,42 @@ fltmc >NUL 2>&1 || ( :: Executed as admin user :: === Right click of Windows 10 == -REG ADD "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve +REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve :: === Disabling widgets == -REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f :: === Disabling hibernation (prevents computer to really shutdown) == -REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f powercfg /H off :: === Disabling the SysMain service (preload some apps in memory) == sc stop "SysMain" & sc config "SysMain" start=disabled :: === Added confirmation when trashing == -REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 00000001 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 00000001 /f :: === Don't create a Zone:Identify == -REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 00000001 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 00000001 /f :: === Disables memory integrity == :: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613 -REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f :: === Disables sticky keys == -REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f +REG ADD "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f :: === Inverts the default shortcuts for changing input language and keyboard layout == -REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f -REG ADD "HKEY_CURRENT_USER\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f +REG ADD "HKCU\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f +REG ADD "HKCU\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f :: === Disable Game Bar == -REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 00000000 /f -REG ADD "HKEY_CURRENT_USER\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 00000000 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 00000000 /f :: === Edge tweaks == -REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 00000000 /f -REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge" /v ShowRecommendationsEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v ShowRecommendationsEnabled /t REG_DWORD /d 00000000 /f :: === WinGet == :: Auto accept ToT From 4be3f70677669c1a83d58041fd5659e562c41416 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 13:47:37 +0200 Subject: [PATCH 5/9] reduce lines lenght --- windows11.bat | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/windows11.bat b/windows11.bat index 7b3c867..e9628fe 100644 --- a/windows11.bat +++ b/windows11.bat @@ -25,24 +25,24 @@ fltmc >NUL 2>&1 || ( REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve :: === Disabling widgets == -REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f :: === Disabling hibernation (prevents computer to really shutdown) == -REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f powercfg /H off :: === Disabling the SysMain service (preload some apps in memory) == sc stop "SysMain" & sc config "SysMain" start=disabled :: === Added confirmation when trashing == -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 00000001 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 1 /f :: === Don't create a Zone:Identify == -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 00000001 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 1 /f :: === Disables memory integrity == :: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613 -REG ADD "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 0 /f :: === Disables sticky keys == REG ADD "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f @@ -52,12 +52,12 @@ REG ADD "HKCU\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f REG ADD "HKCU\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f :: === Disable Game Bar == -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 00000000 /f -REG ADD "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 00000000 /f +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f +REG ADD "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f :: === Edge tweaks == -REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 00000000 /f -REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v ShowRecommendationsEnabled /t REG_DWORD /d 00000000 /f +REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 0 /f +REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v ShowRecommendationsEnabled /t REG_DWORD /d 0 /f :: === WinGet == :: Auto accept ToT From 73d79ce2b055625704f304dfc2b567abbd40853a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 15:18:56 +0200 Subject: [PATCH 6/9] typo --- windows11.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index e9628fe..e006567 100644 --- a/windows11.bat +++ b/windows11.bat @@ -87,7 +87,7 @@ for %%i in (!net_libs!) do ( ) :: Java dev kits -SET ^"java_jdk=EclipseAdoptium.Temurin.17.JDK EclipseAdoptium.Temurin.8.JDK"^ +SET ^"java_jdk=EclipseAdoptium.Temurin.17.JDK EclipseAdoptium.Temurin.8.JDK" for %%i in (!java_libs!) do ( !pmi! %%i From b68ed7454b9d9e4732f394d379366d897634bb1e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 15:19:02 +0200 Subject: [PATCH 7/9] split apps and games --- windows11.bat | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/windows11.bat b/windows11.bat index e006567..8b84126 100644 --- a/windows11.bat +++ b/windows11.bat @@ -100,13 +100,19 @@ SET ^"apps=Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam Parsec.Parsec ^ ONLYOFFICE.DesktopEditors HeroicGamesLauncher.HeroicGamesLauncher ^ OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^ OpenWhisperSystems.Signal HandBrake.HandBrake Front.scrcpy+ ^ - KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell ^ - RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU" + KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell" for %%i in (!apps!) do ( !pmi! %%i ) +:: Games +SET ^"games=Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU" + +for %%i in (!games!) do ( + !pmi! %%i +) + :: Install Vencord TASKKILL /im Discord.exe /F PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^ From 7d1c6a1a94d012a253ea50439bd2ce81b908c8ab Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 15:21:33 +0200 Subject: [PATCH 8/9] add joplin (direct replacement of obsidian --- windows11.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index 8b84126..cfa898c 100644 --- a/windows11.bat +++ b/windows11.bat @@ -100,7 +100,8 @@ SET ^"apps=Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam Parsec.Parsec ^ ONLYOFFICE.DesktopEditors HeroicGamesLauncher.HeroicGamesLauncher ^ OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^ OpenWhisperSystems.Signal HandBrake.HandBrake Front.scrcpy+ ^ - KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell" + KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell ^ + Joplin.Joplin" for %%i in (!apps!) do ( !pmi! %%i From 17b91f4b4de670285de2bc773cea8df833dab8f6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 16:18:14 +0200 Subject: [PATCH 9/9] crap --- windows11.bat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows11.bat b/windows11.bat index cfa898c..8b84126 100644 --- a/windows11.bat +++ b/windows11.bat @@ -100,8 +100,7 @@ SET ^"apps=Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam Parsec.Parsec ^ ONLYOFFICE.DesktopEditors HeroicGamesLauncher.HeroicGamesLauncher ^ OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^ OpenWhisperSystems.Signal HandBrake.HandBrake Front.scrcpy+ ^ - KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell ^ - Joplin.Joplin" + KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell" for %%i in (!apps!) do ( !pmi! %%i