Skip to content

Commit

Permalink
feat: remove win11.cmd & general fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 21, 2023
1 parent ac5298d commit a5aa92e
Show file tree
Hide file tree
Showing 24 changed files with 245 additions and 171 deletions.
2 changes: 2 additions & 0 deletions src/playbook/Configuration/atlas/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Configuration/atlas/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
14 changes: 12 additions & 2 deletions src/playbook/Configuration/tweaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down Expand Up @@ -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 #
Expand Down Expand Up @@ -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 #
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
- tweaks\misc\make-shortcuts.yml
- tweaks\misc\delete-version-specific-files.yml
13 changes: 13 additions & 0 deletions src/playbook/Configuration/tweaks/misc/config-boot-description.yml
Original file line number Diff line number Diff line change
@@ -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' ]
Original file line number Diff line number Diff line change
@@ -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' ]}
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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' ]
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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' ]
11 changes: 11 additions & 0 deletions src/playbook/Configuration/tweaks/qol/shell/show-more-pins.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions src/playbook/Configuration/tweaks/qol/taskbar/disable-copilot.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions src/playbook/Configuration/tweaks/qol/taskbar/set-to-left.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 0 additions & 9 deletions src/playbook/Configuration/tweaks/scripts/script-win11.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/playbook/Configuration/tweaks/statuses/status-ngen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
- !writeStatus: {status: 'Optimizing PowerShell'}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions src/playbook/Executables/CLEANUP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -86,8 +83,7 @@ $foldersToRemove = @(
"SoftwareDistribution",
"System32\catroot2",
"System32\LogFiles",
"System32\sru",
"WinSxS\Backup"
"System32\sru"
)

foreach ($folderName in $foldersToRemove) {
Expand Down
11 changes: 11 additions & 0 deletions src/playbook/Executables/REMOVEBITMAP.ps1
Original file line number Diff line number Diff line change
@@ -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..."
}
}
}
}
Loading

0 comments on commit a5aa92e

Please sign in to comment.