From a5aa92e4a8321ac4a0801686ac8db63d53af1587 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 21 Oct 2023 20:47:31 +0100 Subject: [PATCH] feat: remove win11.cmd & general fixes --- src/playbook/Configuration/atlas/services.yml | 2 + src/playbook/Configuration/atlas/start.yml | 2 +- src/playbook/Configuration/tweaks.yml | 14 +- .../tweaks/misc/config-boot-description.yml | 13 ++ .../misc/delete-version-specific-files.yml | 14 ++ .../performance/system/config-boot-config.yml | 10 ++ .../qol/explorer/dont-show-office-files.yml | 11 ++ .../remove-context-menus/new-bitmap.yml | 5 + .../tweaks/qol/explorer/use-compact-mode.yml | 11 ++ .../tweaks/qol/set-hidden-settings-pages.yml | 19 +++ .../shell/no-recommendations-start-menu.yml | 16 ++ .../qol/shell/restore-old-context-menu.yml | 11 ++ .../shell/set-unpinned-notification-items.yml | 50 ++++++ .../tweaks/qol/shell/show-more-pins.yml | 11 ++ .../tweaks/qol/taskbar/disable-copilot.yml | 11 ++ .../taskbar/disable-news-and-interests.yml | 7 + .../qol/taskbar/disable-windows-chat.yml | 16 ++ .../tweaks/qol/taskbar/set-to-left.yml | 11 ++ .../tweaks/scripts/script-win11.yml | 9 -- .../tweaks/statuses/status-ngen.yml | 2 +- .../Notifications/Disable Notifications.cmd | 5 +- src/playbook/Executables/CLEANUP.ps1 | 6 +- src/playbook/Executables/REMOVEBITMAP.ps1 | 11 ++ src/playbook/Executables/WIN11.cmd | 149 ------------------ 24 files changed, 245 insertions(+), 171 deletions(-) create mode 100644 src/playbook/Configuration/tweaks/misc/config-boot-description.yml create mode 100644 src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml create mode 100644 src/playbook/Configuration/tweaks/qol/explorer/dont-show-office-files.yml create mode 100644 src/playbook/Configuration/tweaks/qol/explorer/use-compact-mode.yml create mode 100644 src/playbook/Configuration/tweaks/qol/set-hidden-settings-pages.yml create mode 100644 src/playbook/Configuration/tweaks/qol/shell/no-recommendations-start-menu.yml create mode 100644 src/playbook/Configuration/tweaks/qol/shell/restore-old-context-menu.yml create mode 100644 src/playbook/Configuration/tweaks/qol/shell/set-unpinned-notification-items.yml create mode 100644 src/playbook/Configuration/tweaks/qol/shell/show-more-pins.yml create mode 100644 src/playbook/Configuration/tweaks/qol/taskbar/disable-copilot.yml create mode 100644 src/playbook/Configuration/tweaks/qol/taskbar/disable-windows-chat.yml create mode 100644 src/playbook/Configuration/tweaks/qol/taskbar/set-to-left.yml delete mode 100644 src/playbook/Configuration/tweaks/scripts/script-win11.yml create mode 100644 src/playbook/Executables/REMOVEBITMAP.ps1 delete mode 100644 src/playbook/Executables/WIN11.cmd diff --git a/src/playbook/Configuration/atlas/services.yml b/src/playbook/Configuration/atlas/services.yml index 7d53975610..e3068738c3 100644 --- a/src/playbook/Configuration/atlas/services.yml +++ b/src/playbook/Configuration/atlas/services.yml @@ -38,6 +38,8 @@ actions: - !service: {name: 'WerSvc', operation: change, startup: 4} - !service: {name: 'wisvc', operation: change, startup: 4} - !service: {name: 'WSearch', operation: change, startup: 4} + - !service: {name: 'webthreatdefsvc', operation: change, startup: 4} + - !service: {name: 'webthreatdefusersvc', operation: change, startup: 4} # Set to manual from automatic # Might not be all too beneficial, as services starting and always being ready is probably ideal diff --git a/src/playbook/Configuration/atlas/start.yml b/src/playbook/Configuration/atlas/start.yml index afe103baf9..428b7d3cc9 100644 --- a/src/playbook/Configuration/atlas/start.yml +++ b/src/playbook/Configuration/atlas/start.yml @@ -39,7 +39,7 @@ actions: - !writeStatus: {status: 'Configuring Optional Features'} # Disabled for security purposes - - !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"Internet-Explorer-Optional-amd64" /NoRestart', weight: 30} + - !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"Internet-Explorer-Optional-amd64" /NoRestart', weight: 30, builds: [ '!>=22000' ]} - !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2" /NoRestart', weight: 30} - !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root" /NoRestart', weight: 30} diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml index 8a78403797..65fa95813a 100644 --- a/src/playbook/Configuration/tweaks.yml +++ b/src/playbook/Configuration/tweaks.yml @@ -162,6 +162,7 @@ tasks: - tweaks\qol\visual-effects.yml - tweaks\qol\disable-tips.yml - tweaks\qol\disable-consumer-expierences.yml + - tweaks\qol\set-hidden-settings-pages.yml # -------------------------------------------------------------------------- # # qol\appearance # @@ -210,6 +211,8 @@ tasks: - tweaks\qol\explorer\show-files.yml - tweaks\qol\explorer\add-music-vids-to-home.yml - tweaks\qol\explorer\classic-search.yml + - tweaks\qol\explorer\dont-show-office-files.yml + - tweaks\qol\explorer\use-compact-mode.yml # -------------------------------------------------------------------------- # # qol\explorer\add-context-menus # @@ -253,6 +256,10 @@ tasks: - tweaks\qol\shell\disable-network-location-wizard.yml - tweaks\qol\shell\disable-shared-experiences.yml - tweaks\qol\shell\legacy-alt-tab.yml + - tweaks\qol\shell\set-unpinned-notification-items.yml + - tweaks\qol\shell\restore-old-context-menu.yml + - tweaks\qol\shell\show-more-pins.yml + - tweaks\qol\shell\no-recommendations-start-menu.yml # -------------------------------------------------------------------------- # # qol\startup-shutdown # @@ -279,6 +286,9 @@ tasks: - tweaks\qol\taskbar\hide-meet-now.yml - tweaks\qol\taskbar\hide-task-view.yml - tweaks\qol\taskbar\config-pins.yml + - tweaks\qol\taskbar\disable-copilot.yml + - tweaks\qol\taskbar\disable-windows-chat.yml + - tweaks\qol\taskbar\set-to-left.yml # ----------------------------------------------------- # Security @@ -325,7 +335,6 @@ tasks: - tweaks\scripts\script-file-associations.yml - tweaks\scripts\script-core-isolation.yml - tweaks\scripts\script-mitigations.yml - - tweaks\scripts\script-win11.yml - tweaks\scripts\script-devices.yml - tweaks\scripts\script-pfp.yml - tweaks\scripts\script-power.yml @@ -348,4 +357,5 @@ tasks: - tweaks\misc\oem-information.yml - tweaks\misc\rebuild-perf-counters.yml - tweaks\misc\restore-default-sleep-timeout.yml - - tweaks\misc\make-shortcuts.yml \ No newline at end of file + - tweaks\misc\make-shortcuts.yml + - tweaks\misc\delete-version-specific-files.yml diff --git a/src/playbook/Configuration/tweaks/misc/config-boot-description.yml b/src/playbook/Configuration/tweaks/misc/config-boot-description.yml new file mode 100644 index 0000000000..1dbcb7dc74 --- /dev/null +++ b/src/playbook/Configuration/tweaks/misc/config-boot-description.yml @@ -0,0 +1,13 @@ +--- +title: Configure Boot Description +description: Configures the boot description that you see in the Windows Boot Manager to say Atlas +privilege: TrustedInstaller +actions: + - !run: + exe: 'bcdedit' + args: '/set description "AtlasOS 10"' + builds: [ '!>=22000' ] + - !run: + exe: 'bcdedit' + args: '/set description "AtlasOS 11"' + builds: [ '>=22000' ] diff --git a/src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml b/src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml new file mode 100644 index 0000000000..6fd9a6c378 --- /dev/null +++ b/src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml @@ -0,0 +1,14 @@ +--- +title: Delete Windows-version Specific Tweaks +description: Deletes Windows 10 or Windows 11-only tweaks in the Atlas folder, dependant on the Windows version +privilege: TrustedInstaller +actions: + # Delete Windows 11-only tweaks + - !file: {path: '%windir%\AtlasDesktop\3. Configuration\Background Apps', builds: [ '!>=22000' ]} + - !file: {path: '%windir%\AtlasDesktop\3. Configuration\Power\Timer Resolution', builds: [ '!>=22000' ]} + - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Compact View', builds: [ '!>=22000' ]} + - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\Windows 11 Context Menu', builds: [ '!>=22000' ]} + - !file: {path: '%windir%\AtlasModules\Tools\TimerResolution.exe', builds: [ '!>=22000' ]} + + # Delete Windows 10-only tweaks + - !file: {path: '%windir%\AtlasDesktop\3. Configuration\4. Optional Tweaks\Volume Flyout', builds: [ '>=22000' ]} diff --git a/src/playbook/Configuration/tweaks/performance/system/config-boot-config.yml b/src/playbook/Configuration/tweaks/performance/system/config-boot-config.yml index 6a57f880a1..5c8e659022 100644 --- a/src/playbook/Configuration/tweaks/performance/system/config-boot-config.yml +++ b/src/playbook/Configuration/tweaks/performance/system/config-boot-config.yml @@ -9,3 +9,13 @@ actions: # Use legacy boot menu - !run: {exe: 'bcdedit', args: '/set bootmenupolicy Legacy'} + + # Set boot manager descriptions + - !run: + exe: 'bcdedit' + args: '/set description "AtlasOS 10"' + builds: [ '!>=22000' ] + - !run: + exe: 'bcdedit' + args: '/set description "AtlasOS 11"' + builds: [ '>=22000' ] diff --git a/src/playbook/Configuration/tweaks/qol/explorer/dont-show-office-files.yml b/src/playbook/Configuration/tweaks/qol/explorer/dont-show-office-files.yml new file mode 100644 index 0000000000..b858385fc4 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/explorer/dont-show-office-files.yml @@ -0,0 +1,11 @@ +--- +title: Don't Show Office Files +description: Don't show Office files in Quick Access (Home) +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer' + value: 'ShowCloudFilesInQuickAccess' + data: '0' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/new-bitmap.yml b/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/new-bitmap.yml index 62378feee6..20cb06a3cc 100644 --- a/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/new-bitmap.yml +++ b/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/new-bitmap.yml @@ -4,3 +4,8 @@ description: Removes bitmap image from the 'New' context menu privilege: TrustedInstaller actions: - !registryKey: {path: 'HKCR\.bmp\ShellNew'} + - !run: + exe: 'powershell.exe' + args: '-NoP -File REMOVEBITMAP.ps1' + exeDir: true + wait: true diff --git a/src/playbook/Configuration/tweaks/qol/explorer/use-compact-mode.yml b/src/playbook/Configuration/tweaks/qol/explorer/use-compact-mode.yml new file mode 100644 index 0000000000..2f000e440d --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/explorer/use-compact-mode.yml @@ -0,0 +1,11 @@ +--- +title: Use Compact Mode +description: Sets compact mode in File Explorer +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'UseCompactMode' + data: '1' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/set-hidden-settings-pages.yml b/src/playbook/Configuration/tweaks/qol/set-hidden-settings-pages.yml new file mode 100644 index 0000000000..ae32d06886 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/set-hidden-settings-pages.yml @@ -0,0 +1,19 @@ +--- +title: Set Hidden Pages +description: Hides Settings pages that are either broken or unused +privilege: TrustedInstaller +actions: + # Windows 10 + - !registryValue: + path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer' + value: 'SettingsPageVisibility' + data: 'hide:crossdevice;recovery;autoplay;usb;maps;maps-downloadmaps;findmydevice;privacy;privacy-speech;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;printers;cortana-windowssearch;backup;' + type: REG_SZ + builds: [ '!>=22000' ] + # Windows 11 + - !registryValue: + path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer' + value: 'SettingsPageVisibility' + data: 'hide:crossdevice;recovery;autoplay;usb;maps;maps-downloadmaps;findmydevice;privacy;privacy-speech;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;printers;cortana-windowssearch;family-group;deviceusage;home;' + type: REG_SZ + builds: [ '>=22000' ] diff --git a/src/playbook/Configuration/tweaks/qol/shell/no-recommendations-start-menu.yml b/src/playbook/Configuration/tweaks/qol/shell/no-recommendations-start-menu.yml new file mode 100644 index 0000000000..1924a8c88d --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/shell/no-recommendations-start-menu.yml @@ -0,0 +1,16 @@ +--- +title: Disable Recommendations in the Start Menu +description: Do not show recommendations for tips, shortcuts, new apps, and more in the Start Menu +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'Start_IrisRecommendations' + data: '0' + type: REG_DWORD + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'Start_AccountNotifications' + data: '0' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/shell/restore-old-context-menu.yml b/src/playbook/Configuration/tweaks/qol/shell/restore-old-context-menu.yml new file mode 100644 index 0000000000..0441c89bb3 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/shell/restore-old-context-menu.yml @@ -0,0 +1,11 @@ +--- +title: Restore Old Context Menu +description: Restores the old context menu in Windows 11 +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32' + value: '' + data: '' + type: REG_SZ diff --git a/src/playbook/Configuration/tweaks/qol/shell/set-unpinned-notification-items.yml b/src/playbook/Configuration/tweaks/qol/shell/set-unpinned-notification-items.yml new file mode 100644 index 0000000000..ec5b0084bb --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/shell/set-unpinned-notification-items.yml @@ -0,0 +1,50 @@ +--- +title: Disable Windows Chat +description: Disables Windows Chat as it's not commonly used +privilege: TrustedInstaller +actions: + # Windows 10 + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\Unpinned' + value: 'Microsoft.QuickAction.Connect' + data: '' + type: REG_NONE + builds: [ '!>=22000' ] + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\Unpinned' + value: 'Microsoft.QuickAction.Location' + data: '' + type: REG_NONE + builds: [ '!>=22000' ] + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\Unpinned' + value: 'Microsoft.QuickAction.ScreenClipping' + data: '' + type: REG_NONE + builds: [ '!>=22000' ] + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\QuickActionsStateCapture' + value: 'Toggles' + data: 'Toggles,Microsoft.QuickAction.BlueLightReduction:false,Microsoft.QuickAction.AllSettings:false,Microsoft.QuickAction.Project:false' + type: REG_SZ + builds: [ '!>=22000' ] + + # Windows 11 + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\Unpinned' + value: 'Microsoft.QuickAction.Cast' + data: '' + type: REG_NONE + builds: [ '>=22000' ] + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\Unpinned' + value: 'Microsoft.QuickAction.NearShare' + data: '' + type: REG_NONE + builds: [ '>=22000' ] + - !registryValue: + path: 'HKCU\Control Panel\Quick Actions\Control Center\QuickActionsStateCapture' + value: 'Toggles' + data: 'Toggles,Microsoft.QuickAction.BlueLightReduction:false,Microsoft.QuickAction.Accessibility:false,Microsoft.QuickAction.ProjectL2:false' + type: REG_SZ + builds: [ '>=22000' ] diff --git a/src/playbook/Configuration/tweaks/qol/shell/show-more-pins.yml b/src/playbook/Configuration/tweaks/qol/shell/show-more-pins.yml new file mode 100644 index 0000000000..9b8300b6b6 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/shell/show-more-pins.yml @@ -0,0 +1,11 @@ +--- +title: Show More Pins in Start +description: Shows more pins in the Start Menu, meaning less recommendations +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'Start_Layout' + data: '1' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/taskbar/disable-copilot.yml b/src/playbook/Configuration/tweaks/qol/taskbar/disable-copilot.yml new file mode 100644 index 0000000000..c3d86105a6 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/taskbar/disable-copilot.yml @@ -0,0 +1,11 @@ +--- +title: Disable Windows Copilot +description: Disables Windows Copilot as it depends on Edge, as well it collecting data and it not being used by most users +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot' + value: 'TurnOffWindowsCopilot' + data: '1' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/taskbar/disable-news-and-interests.yml b/src/playbook/Configuration/tweaks/qol/taskbar/disable-news-and-interests.yml index 15b7ae5ca2..3cdef43933 100644 --- a/src/playbook/Configuration/tweaks/qol/taskbar/disable-news-and-interests.yml +++ b/src/playbook/Configuration/tweaks/qol/taskbar/disable-news-and-interests.yml @@ -27,3 +27,10 @@ actions: data: '0' type: REG_DWORD operation: add + # Disable Widgets in taskbar + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'TaskbarDa' + data: '0' + type: REG_DWORD + builds: [ '>=22000' ] diff --git a/src/playbook/Configuration/tweaks/qol/taskbar/disable-windows-chat.yml b/src/playbook/Configuration/tweaks/qol/taskbar/disable-windows-chat.yml new file mode 100644 index 0000000000..0c75f4bc53 --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/taskbar/disable-windows-chat.yml @@ -0,0 +1,16 @@ +--- +title: Disable Windows Chat +description: Disables Windows Chat as it's not commonly used +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Chat' + value: 'ChatIcon' + data: '3' + type: REG_DWORD + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'TaskbarMn' + data: '0' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/qol/taskbar/set-to-left.yml b/src/playbook/Configuration/tweaks/qol/taskbar/set-to-left.yml new file mode 100644 index 0000000000..47e248ae9d --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/taskbar/set-to-left.yml @@ -0,0 +1,11 @@ +--- +title: Set Taskbar to Align Left +description: Sets taskbar to align left instead of centered +privilege: TrustedInstaller +builds: [ '>=22000' ] +actions: + - !registryValue: + path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' + value: 'TaskbarAl' + data: '0' + type: REG_DWORD diff --git a/src/playbook/Configuration/tweaks/scripts/script-win11.yml b/src/playbook/Configuration/tweaks/scripts/script-win11.yml deleted file mode 100644 index 3c98536a66..0000000000 --- a/src/playbook/Configuration/tweaks/scripts/script-win11.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Run Windows 11 Configuration -description: Configures Windows 11 registry and settings -privilege: TrustedInstaller -actions: - - !run: - exeDir: true - exe: 'WIN11.cmd' - weight: 20 diff --git a/src/playbook/Configuration/tweaks/statuses/status-ngen.yml b/src/playbook/Configuration/tweaks/statuses/status-ngen.yml index 282b79b7f3..4b21d03a36 100644 --- a/src/playbook/Configuration/tweaks/statuses/status-ngen.yml +++ b/src/playbook/Configuration/tweaks/statuses/status-ngen.yml @@ -3,4 +3,4 @@ title: Status in AME Wizard for Running .NET Optimization description: Displays a status in AME Wizard for a specified category privilege: TrustedInstaller actions: - - !writeStatus: {status: 'Running NGEN'} \ No newline at end of file + - !writeStatus: {status: 'Optimizing PowerShell'} \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/3. Configuration/Notifications/Disable Notifications.cmd b/src/playbook/Executables/AtlasDesktop/3. Configuration/Notifications/Disable Notifications.cmd index 790de32b4c..123f75b36f 100644 --- a/src/playbook/Executables/AtlasDesktop/3. Configuration/Notifications/Disable Notifications.cmd +++ b/src/playbook/Executables/AtlasDesktop/3. Configuration/Notifications/Disable Notifications.cmd @@ -10,13 +10,10 @@ reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_NOTIFICATION_SOUND" /t REG_DWORD /d "0" /f > nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d "0" /f > nul reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoCloudApplicationNotification" /t REG_DWORD /d "1" /f > nul -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f > nul :: Re-enable action center on Windows 11 as it breaks calendar for /f "tokens=6 delims=[.] " %%a in ('ver') do ( - if %%a GEQ 22000 ( - reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /f > nul 2>&1 - ) + if %%a LSS 22000 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f > nul > nul ) echo Finished, please reboot your device for changes to apply. diff --git a/src/playbook/Executables/CLEANUP.ps1 b/src/playbook/Executables/CLEANUP.ps1 index c2937d0301..8069692063 100644 --- a/src/playbook/Executables/CLEANUP.ps1 +++ b/src/playbook/Executables/CLEANUP.ps1 @@ -66,9 +66,6 @@ Remove-Item -Path "$env:windir\Temp\*" -Force -Recurse -EA SilentlyContinue # Disable Reserved Storage for updates Set-WindowsReservedStorageState -State Disabled -# Clear Windows WinSxS folder -DISM /Online /Cleanup-Image /StartComponentCleanup - # Clear Event Logs wevtutil el 2>$null | ForEach-Object {wevtutil cl "$_"} 2>$null @@ -86,8 +83,7 @@ $foldersToRemove = @( "SoftwareDistribution", "System32\catroot2", "System32\LogFiles", - "System32\sru", - "WinSxS\Backup" + "System32\sru" ) foreach ($folderName in $foldersToRemove) { diff --git a/src/playbook/Executables/REMOVEBITMAP.ps1 b/src/playbook/Executables/REMOVEBITMAP.ps1 new file mode 100644 index 0000000000..6752d840fd --- /dev/null +++ b/src/playbook/Executables/REMOVEBITMAP.ps1 @@ -0,0 +1,11 @@ +# Removes 'Bitmap' from the 'New' context menu in Windows 11 +foreach ($userKey in $((Get-ChildItem -Path "Registry::HKEY_USERS").Name | Where-Object { $_ -like '*_Classes' })) { + foreach ($key in $(Get-ChildItem -Path "Registry::$userKey\Local Settings\MrtCache" -Recurse)) { + $key | Get-ItemProperty | ForEach-Object { + foreach ($value in $($_.PSObject.Properties.Name | Where-Object {$_ -like '*ShellNewDisplayName_Bmp*'})) { + Set-ItemProperty -Path $key.PSPath -Name $value -Value "" + Write-Host "Removed 'Bitmap' from 'New' context menu for $userKey..." + } + } + } +} \ No newline at end of file diff --git a/src/playbook/Executables/WIN11.cmd b/src/playbook/Executables/WIN11.cmd deleted file mode 100644 index 0647f95043..0000000000 --- a/src/playbook/Executables/WIN11.cmd +++ /dev/null @@ -1,149 +0,0 @@ -@echo off - -:: Check if user is on Windows 11 -for /f "tokens=6 delims=[.] " %%a in ('ver') do (if %%a LSS 22000 set "win10=true") - -:: Set hidden Windows Settings pages -:: There's some specific Windows 11/10 additions or removals -:: https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app#ms-settings-uri-scheme-reference - -set hiddenPages=hide:^ -crossdevice;^ -recovery;^ -autoplay;^ -usb;^ -maps;^ -maps-downloadmaps;^ -findmydevice;^ -privacy;^ -privacy-speech;^ -privacy-feedback;^ -privacy-activityhistory;^ -search-permissions;^ -privacy-location;^ -privacy-general;^ -sync;^ -printers;^ -cortana-windowssearch - -:: Set 10-only changes -if defined win10 ( - set "regVariable=USERREG10" - - rem Set dual boot menu description to AtlasOS 10 - bcdedit /set description "AtlasOS 10" > nul - - rem Delete 11-only tweaks - rd /s /q "%windir%\AtlasDesktop\3. Configuration\Background Apps" > nul 2>&1 - rd /s /q "%windir%\AtlasDesktop\3. Configuration\Power\Timer Resolution" > nul 2>&1 - rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Compact View" > nul 2>&1 - rd /s /q "%windir%\AtlasDesktop\4. Optional Tweaks\Windows 11 Context Menu" > nul 2>&1 - del /f /q "%windir%\AtlasModules\Tools\TimerResolution.exe" > nul 2>&1 - - rem Set hidden Settings pages - reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "SettingsPageVisibility" /t REG_SZ /d "%hiddenPages%;backup;" /f > nul -) else ( - set "regVariable=USERREG" -) - -:: If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs do not have this key. -for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do ( - reg query "HKU\%%a" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > nul && ( - echo Applying %regVariable% changes to "%%a"... - call :%regVariable% "%%a" - ) -) -if defined win10 exit /b - -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: WINDOWS 11-ONLY CHANGES :: -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -:: Remove volume flyout -rd /s /q "%windir%\AtlasDesktop\3. Configuration\4. Optional Tweaks\Volume Flyout" > nul 2>&1 - -:: Set hidden Settings pages -reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "SettingsPageVisibility" /t REG_SZ /d "%hiddenPages%;family-group;deviceusage;home;" /f > nul - -:: Disable Windows Chat in the taskbar -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Chat" /v "ChatIcon" /t REG_DWORD /d "3" /f > nul - -:: Disable Copilot -reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f > nul - -:: Set dual boot menu description to AtlasOS 11 -bcdedit /set description "AtlasOS 11" > nul - -:: Re-enable Action Center on Win11, as it breaks calendar -reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /f > nul 2>&1 - -:: Restore Music and Videos folders by clearing up Quick Access' cache -del /f /q "%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms" > nul 2>&1 - -exit /b - -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: WINDOWS 10-ONLY USER REGISTRY CHANGES :: -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -:USERREG10 -:: Set unpinned Notification Center items -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\Unpinned" /v "Microsoft.QuickAction.Connect" /t REG_NONE /d "" /f > nul -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\Unpinned" /v "Microsoft.QuickAction.Location" /t REG_NONE /d "" /f > nul -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\Unpinned" /v "Microsoft.QuickAction.ScreenClipping" /t REG_NONE /d "" /f > nul -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\QuickActionsStateCapture" /v "Toggles" /t REG_SZ /d "Toggles,Microsoft.QuickAction.BlueLightReduction:false,Microsoft.QuickAction.AllSettings:false,Microsoft.QuickAction.Project:false" /f > nul - -exit /b - -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: WINDOWS 11-ONLY USER REGISTRY CHANGES :: -::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -:USERREG -:: Do not show recommendations for tips, shortcuts, new apps, and more in start menu -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_IrisRecommendations" /t REG_DWORD /d "0" /f > nul - -:: Show more pins in Start menu -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_Layout" /t REG_DWORD /d "1" /f > nul - -:: Compact mode in Explorer -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "UseCompactMode" /t REG_DWORD /d "1" /f > nul - -:: Put taskbar to the left -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d "0" /f > nul - -:: Do not show account related notifications occasionally in start menu -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_AccountNotifications" /t REG_DWORD /d "0" /f > nul - -:: Remove Widgets button from taskbar -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d "0" /f > nul - -:: Remove Chat button from taskbar -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d "0" /f > nul - -:: Do not show the voice typing microphone button -reg add "HKU\%~1\Software\Microsoft\input\Settings" /v "IsVoiceTypingKeyEnabled" /t REG_DWORD /d "0" /f > nul - -:: Do not show files from Office.com -reg add "HKU\%~1\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowCloudFilesInQuickAccess" /t REG_DWORD /d "0" /f > nul - -:: Restore old Windows 10 context menu -reg add "HKU\%~1\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve > nul - -:: Set unpinned Notification Center items -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\Unpinned" /v "Microsoft.QuickAction.Cast" /t REG_NONE /d "" /f > nul -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\Unpinned" /v "Microsoft.QuickAction.NearShare" /t REG_NONE /d "" /f > nul -reg add "HKU\%~1\Control Panel\Quick Actions\Control Center\QuickActionsStateCapture" /v "Toggles" /t REG_SZ /d "Toggles,Microsoft.QuickAction.BlueLightReduction:false,Microsoft.QuickAction.Accessibility:false,Microsoft.QuickAction.ProjectL2:false" /f > nul - -:: Remove 'Bitmap File' from 'New' context menu -set "mrtCache=HKEY_USERS\%~1\Software\Classes\Local Settings\MrtCache" -echo %~1 | find "_Classes" > nul -if errorlevel 1 ( - for /f "tokens=*" %%a in ('reg query "%mrtCache%" /s 2^>nul ^| find /i "%mrtCache%" 2^>nul') do ( - for /f "tokens=1-2" %%b in ('reg query "%%a" /v * ^| find /i "ShellNewDisplayName_Bmp"') do ( - reg add "%%a" /v "%%b %%c" /t REG_SZ /d "" /f > nul - ) - ) -) - -exit /b \ No newline at end of file