From 47526d90e001c7aebaae5189a9829fbd9d053426 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Fri, 14 Jun 2024 03:07:52 +0100 Subject: [PATCH] feat: services in folder reorganisation, enable all script, misc fixes (#1123) ### Questions - [x] Did you test your changes or double-check that they work? - [x] Did you read and follow the [Atlas Contribution Guidelines](https://docs.atlasos.net/contributions/)? ### Describe your pull request - Moves all service scripts that break functionality to `6. Advanced Configuration` - This is only for service scripts that don't inform the user when attempting to use that feature that it's disabled or is considered experimental - Examples of this are Bluetooth, printing, and VPN support - Adds a script to re-enable every service in the Atlas folder - This is good for troubleshooting when a user has run various service disable scripts in the Atlas folder but doesn't know how to fix their issue - This is located both in the `6. Advanced Configuration\Services` folder (as a shortcut) and the troubleshooting folder - Move folders in the 'Power' folder into the root of general configuration #### Other changes - Adds silent switches to all the enable service scripts as this is required for the re-enable script - Add disable snap layouts tweak (not done by default) for Windows 11 - Make the themes more reliable using PowerShell; CMD seems to have issues randomly. - Make Fax & Scan optional in the enable printing script, as this usually takes lots of time to install - Add an option to not re-enable the printing context menu - The printing context menu is disabled by default as well ### Note I want 3 reviews on this PR before merging as it's a big change. --- src/playbook/Configuration/custom.yml | 2 +- src/playbook/Configuration/tweaks.yml | 1 + .../misc/delete-windows-specific-files.yml | 3 +- .../tweaks/misc/enable-notifications.yml | 4 +- .../tweaks/qol/appearance/atlas-theme.yml | 9 +- .../remove-context-menus/printing.yml | 8 ++ .../windows-update/disable-auto-updates.yml | 2 +- .../tweaks/scripts/script-power.yml | 4 +- .../Disable Automatic Updates (default).reg | 0 .../Enable Automatic Updates.reg | 0 ...dd Idle Toggle in Desktop Context Menu.reg | 0 ...ggle in Desktop Context Menu (default).reg | 0 .../{Power => }/CPU Idle/Disable Idle.cmd | 0 .../CPU Idle/Enable Idle (default).cmd | 0 ...isable Delivery Optimization (default).reg | 0 .../Enable Delivery Optimization.reg | 0 .../Disable File Sharing (default).cmd | 0 .../File Sharing/Enable File Sharing.cmd | 0 ...able Network Navigation Pane (default).reg | 0 .../User Network Navigation Pane choice.reg | 0 .../Disable Hibernation (default).cmd | 0 .../Hibernation/Enable Hibernation.cmd | 0 .../Power-saving/Default Power-saving.cmd | 0 .../Power-saving/Disable Power-saving.cmd | 0 .../Disable Sleep Study (default).cmd | 0 .../Sleep Study/Enable Sleep Study.cmd | 0 .../{Power => }/Sleep/Disable Sleep.cmd | 0 .../Sleep/Enable Sleep (default).cmd | 0 .../Timer Resolution/! Documentation.url | 0 .../Timer Resolution/! MeasureSleep.exe | Bin .../Disable timer resolution (default).cmd | 0 .../Enable timer resolution.cmd | 0 .../Disable Update Notifications.reg | 0 .../Enable Update Notifications (default).reg | 0 .../Snap Layouts/Disable Snap Layouts.reg | 5 + .../Enable Snap Layouts (default).reg | 5 + .../Install Process Explorer.cmd | 6 +- .../Services}/Bluetooth/Disable Bluetooth.cmd | 0 .../Bluetooth/Enable Bluetooth (default).cmd} | 5 + .../Disable Lanman Workstation.cmd | 0 .../Enable Lanman Workstation (default).cmd | 0 .../Add Container Context Menu.cmd} | 4 +- ...move Container Context Menu (default).cmd} | 6 ++ .../Disable NVIDIA Display Container LS.cmd | 0 ...NVIDIA Display Container LS (default).cmd} | 8 +- .../Must Read First.url | 0 .../Disable Network Discovery Services.cmd | 0 ...e Network Discovery Services (default).cmd | 2 +- .../Notifications/Disable Notifications.cmd | 0 .../Enable Notifications (default).cmd} | 9 +- .../Services}/Printing/Disable Printing.cmd | 11 +-- .../Printing/Enable Printing (default).cmd} | 26 +++-- .../Superfetch/Disable SuperFetch.cmd | 8 +- .../Enable SuperFetch (default).cmd | 13 ++- .../Configure UAC.lnk | Bin .../Disable UAC.cmd | 0 .../Enable UAC (default).cmd | 14 ++- .../Services}/VPN/Disable VPN support.cmd | 0 .../VPN/Enable VPN support (default).cmd | 5 + .../{ => Services}/Wi-Fi/Disable Wi-Fi.cmd | 0 .../Wi-Fi/Enable Wi-Fi (default).cmd | 5 + .../Set services to defaults.cmd | 89 ++++++++++++++++++ .../ScriptWrappers/DisableFileSharing.ps1 | 2 +- .../ScriptWrappers/EnableFileSharing.ps1 | 6 +- .../AtlasModules/Scripts/newUsers.ps1 | 2 +- src/playbook/Executables/SHORTCUTS.ps1 | 74 +++++++-------- 66 files changed, 240 insertions(+), 98 deletions(-) create mode 100644 src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/printing.yml rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Automatic Updates/Disable Automatic Updates (default).reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Automatic Updates/Enable Automatic Updates.reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/CPU Idle/Desktop Context Menu/Add Idle Toggle in Desktop Context Menu.reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/CPU Idle/Desktop Context Menu/Remove Idle Toggle in Desktop Context Menu (default).reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/CPU Idle/Disable Idle.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/CPU Idle/Enable Idle (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Delivery Optimization/Disable Delivery Optimization (default).reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Delivery Optimization/Enable Delivery Optimization.reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Network Discovery => }/File Sharing/Disable File Sharing (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Network Discovery => }/File Sharing/Enable File Sharing.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Network Discovery => File Sharing}/Network Navigation Pane/Disable Network Navigation Pane (default).reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Network Discovery => File Sharing}/Network Navigation Pane/User Network Navigation Pane choice.reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Hibernation/Disable Hibernation (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Hibernation/Enable Hibernation.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Power-saving/Default Power-saving.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Power-saving/Disable Power-saving.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Sleep Study/Disable Sleep Study (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Sleep Study/Enable Sleep Study.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Sleep/Disable Sleep.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Sleep/Enable Sleep (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Timer Resolution/! Documentation.url (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Timer Resolution/! MeasureSleep.exe (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Timer Resolution/Disable timer resolution (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Power => }/Timer Resolution/Enable timer resolution.cmd (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Update Notifications/Disable Update Notifications.reg (100%) rename src/playbook/Executables/AtlasDesktop/3. General Configuration/{Windows Update => }/Update Notifications/Enable Update Notifications (default).reg (100%) create mode 100644 src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Disable Snap Layouts.reg create mode 100644 src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Enable Snap Layouts (default).reg rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Bluetooth/Disable Bluetooth.cmd (100%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration/Bluetooth/Enable Bluetooth.cmd => 6. Advanced Configuration/Services/Bluetooth/Enable Bluetooth (default).cmd} (95%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/Lanman Workstation (SMB)/Disable Lanman Workstation.cmd (100%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/Lanman Workstation (SMB)/Enable Lanman Workstation (default).cmd (100%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{NVIDIA Display Container/Context Menu/Enable Container Context Menu.cmd => Services/NVIDIA Display Container/Context Menu/Add Container Context Menu.cmd} (89%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{NVIDIA Display Container/Context Menu/Disable Container Context Menu.cmd => Services/NVIDIA Display Container/Context Menu/Remove Container Context Menu (default).cmd} (89%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/NVIDIA Display Container/Disable NVIDIA Display Container LS.cmd (100%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{NVIDIA Display Container/Enable NVIDIA Display Container LS.cmd => Services/NVIDIA Display Container/Enable NVIDIA Display Container LS (default).cmd} (87%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/NVIDIA Display Container/Must Read First.url (100%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Network Discovery/Disable Network Discovery Services.cmd (100%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Network Discovery/Enable Network Discovery Services (default).cmd (85%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Notifications/Disable Notifications.cmd (100%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration/Notifications/Enable Notifications.cmd => 6. Advanced Configuration/Services/Notifications/Enable Notifications (default).cmd} (87%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Printing/Disable Printing.cmd (92%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration/Printing/Enable Printing.cmd => 6. Advanced Configuration/Services/Printing/Enable Printing (default).cmd} (82%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Superfetch/Disable SuperFetch.cmd (87%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/Superfetch/Enable SuperFetch (default).cmd (83%) rename src/playbook/Executables/AtlasDesktop/{7. Security => 6. Advanced Configuration/Services}/User Account Control (UAC)/Configure UAC.lnk (100%) rename src/playbook/Executables/AtlasDesktop/{7. Security => 6. Advanced Configuration/Services}/User Account Control (UAC)/Disable UAC.cmd (100%) rename src/playbook/Executables/AtlasDesktop/{7. Security => 6. Advanced Configuration/Services}/User Account Control (UAC)/Enable UAC (default).cmd (96%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/VPN/Disable VPN support.cmd (100%) rename src/playbook/Executables/AtlasDesktop/{3. General Configuration => 6. Advanced Configuration/Services}/VPN/Enable VPN support (default).cmd (92%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/Wi-Fi/Disable Wi-Fi.cmd (100%) rename src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/{ => Services}/Wi-Fi/Enable Wi-Fi (default).cmd (87%) create mode 100644 src/playbook/Executables/AtlasDesktop/8. Troubleshooting/Set services to defaults.cmd diff --git a/src/playbook/Configuration/custom.yml b/src/playbook/Configuration/custom.yml index 01c2896c1b..d8100d26d0 100644 --- a/src/playbook/Configuration/custom.yml +++ b/src/playbook/Configuration/custom.yml @@ -28,7 +28,7 @@ actions: # Prevent annoying notifications during deployment - !taskKill: {name: 'explorer'} - !cmd: - command: '"AtlasDesktop\3. General Configuration\Notifications\Disable Notifications.cmd" /includeuserservice' + command: '"AtlasDesktop\6. Advanced Configuration\Services\Notifications\Disable Notifications.cmd" /includeuserservice' exeDir: true wait: true runas: currentUserElevated diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml index 359cc4a61b..bb2bbf1708 100644 --- a/src/playbook/Configuration/tweaks.yml +++ b/src/playbook/Configuration/tweaks.yml @@ -232,6 +232,7 @@ tasks: - tweaks\qol\explorer\remove-context-menus\paint-3D.yml - tweaks\qol\explorer\remove-context-menus\share.yml - tweaks\qol\explorer\remove-context-menus\troubleshooting-compat.yml + - tweaks\qol\explorer\remove-context-menus\printing.yml # -------------------------------------------------------------------------- # # qol\security # diff --git a/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml index 8ed9a0f70e..2411ceae45 100644 --- a/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml +++ b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml @@ -5,10 +5,11 @@ actions: # Delete files exclusive to Windows 11 - !file: {path: '%windir%\AtlasDesktop\3. General Configuration\Background Apps', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasModules\Tools\TimerResolution.exe', builds: [ '<22000' ]} - - !file: {path: '%windir%\AtlasDesktop\3. General Configuration\Power\Timer Resolution', builds: [ '<22000' ]} + - !file: {path: '%windir%\AtlasDesktop\3. General Configuration\Timer Resolution', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Compact View', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Gallery', builds: [ '<22000' ]} - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\Context Menu\Windows 11', builds: [ '<22000' ]} + - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\Snap Layouts', builds: [ '<22000' ]} # Delete files exclusive to Windows 10 - !file: {path: '%windir%\AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Folders in This PC', builds: [ '>=22000' ]} diff --git a/src/playbook/Configuration/tweaks/misc/enable-notifications.yml b/src/playbook/Configuration/tweaks/misc/enable-notifications.yml index 8c103b6840..3885aedeed 100644 --- a/src/playbook/Configuration/tweaks/misc/enable-notifications.yml +++ b/src/playbook/Configuration/tweaks/misc/enable-notifications.yml @@ -1,8 +1,8 @@ --- title: Enable Notifications -description: Notifications were turned off at the start of the Playbook to prevent random notifications from interfering with the process. This task re-enables notifications if the user chose to do so. +description: Notifications were turned off at the start of the Playbook to prevent random notifications from interfering with the process. This task re-enables notifications. actions: - !cmd: - command: '"AtlasDesktop\3. General Configuration\Notifications\Enable Notifications.cmd" /silent' + command: '"AtlasDesktop\6. Advanced Configuration\Services\Notifications\Enable Notifications (default).cmd" /silent' exeDir: true wait: true diff --git a/src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml b/src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml index 1179239693..686c5b64a5 100644 --- a/src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml +++ b/src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml @@ -4,11 +4,12 @@ description: Adds and sets the Atlas themes by default actions: # Apply theme file - !taskKill: {name: 'SystemSettings', ignoreErrors: true} - - !cmd: - command: 'explorer "%windir%\Resources\Themes\atlas-v0.4.x-dark.theme" & timeout /t 6 /nobreak > nul' + - !powerShell: + command: >- + Start-Process -FilePath explorer -ArgumentList """$([Environment]::GetFolderPath('Windows'))\Resources\Themes\atlas-v0.4.x-dark.theme"""; + Start-Sleep 6 wait: true - runas: currentUser - timeout: 30 + runas: currentUserElevated # For Windows 11, set recent theme selection - !taskKill: {name: 'SystemSettings', ignoreErrors: true} diff --git a/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/printing.yml b/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/printing.yml new file mode 100644 index 0000000000..7591c4359a --- /dev/null +++ b/src/playbook/Configuration/tweaks/qol/explorer/remove-context-menus/printing.yml @@ -0,0 +1,8 @@ +--- +title: Remove 'Printing' from Context Menus +description: Removes printing from context menus as users normally print from apps anyways +actions: + - !cmd: + command: '"AtlasDesktop\6. Advanced Configuration\Services\Printing\Disable Printing.cmd" /justcontext' + exeDir: true + wait: true diff --git a/src/playbook/Configuration/tweaks/qol/windows-update/disable-auto-updates.yml b/src/playbook/Configuration/tweaks/qol/windows-update/disable-auto-updates.yml index 95e96fcd44..cb2dd267bb 100644 --- a/src/playbook/Configuration/tweaks/qol/windows-update/disable-auto-updates.yml +++ b/src/playbook/Configuration/tweaks/qol/windows-update/disable-auto-updates.yml @@ -4,7 +4,7 @@ description: Disables Windows Update from automatically updating Windows for QoL actions: # Disable auto-updates - !cmd: - command: 'reg import "AtlasDesktop\3. General Configuration\Windows Update\Automatic Updates\Disable Automatic Updates (default).reg"' + command: 'reg import "AtlasDesktop\3. General Configuration\Automatic Updates\Disable Automatic Updates (default).reg"' exeDir: true wait: true option: 'auto-updates-disable' diff --git a/src/playbook/Configuration/tweaks/scripts/script-power.yml b/src/playbook/Configuration/tweaks/scripts/script-power.yml index d1293e9896..dfe7d6094d 100644 --- a/src/playbook/Configuration/tweaks/scripts/script-power.yml +++ b/src/playbook/Configuration/tweaks/scripts/script-power.yml @@ -4,7 +4,7 @@ description: Executes script to configure power settings for the best performanc actions: # Disable power saving features - !cmd: - command: '"AtlasDesktop\3. General Configuration\Power\Power-saving\Disable Power-saving.cmd" -Silent' + command: '"AtlasDesktop\3. General Configuration\Power-saving\Disable Power-saving.cmd" -Silent' exeDir: true wait: true weight: 20 @@ -20,7 +20,7 @@ actions: # Disable Hibernation # Disabling makes NTFS accessible outside of Windows - !cmd: - command: '"AtlasDesktop\3. General Configuration\Power\Hibernation\Disable Hibernation (default).cmd" /silent' + command: '"AtlasDesktop\3. General Configuration\Hibernation\Disable Hibernation (default).cmd" /silent' exeDir: true wait: true weight: 20 diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Automatic Updates/Disable Automatic Updates (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Automatic Updates/Disable Automatic Updates (default).reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Automatic Updates/Disable Automatic Updates (default).reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Automatic Updates/Disable Automatic Updates (default).reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Automatic Updates/Enable Automatic Updates.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Automatic Updates/Enable Automatic Updates.reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Automatic Updates/Enable Automatic Updates.reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Automatic Updates/Enable Automatic Updates.reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Desktop Context Menu/Add Idle Toggle in Desktop Context Menu.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Desktop Context Menu/Add Idle Toggle in Desktop Context Menu.reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Desktop Context Menu/Add Idle Toggle in Desktop Context Menu.reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Desktop Context Menu/Add Idle Toggle in Desktop Context Menu.reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Desktop Context Menu/Remove Idle Toggle in Desktop Context Menu (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Desktop Context Menu/Remove Idle Toggle in Desktop Context Menu (default).reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Desktop Context Menu/Remove Idle Toggle in Desktop Context Menu (default).reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Desktop Context Menu/Remove Idle Toggle in Desktop Context Menu (default).reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Disable Idle.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Disable Idle.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Disable Idle.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Disable Idle.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Enable Idle (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Enable Idle (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/CPU Idle/Enable Idle (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Enable Idle (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Delivery Optimization/Disable Delivery Optimization (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Delivery Optimization/Disable Delivery Optimization (default).reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Delivery Optimization/Disable Delivery Optimization (default).reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Delivery Optimization/Disable Delivery Optimization (default).reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Delivery Optimization/Enable Delivery Optimization.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Delivery Optimization/Enable Delivery Optimization.reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Delivery Optimization/Enable Delivery Optimization.reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Delivery Optimization/Enable Delivery Optimization.reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/File Sharing/Disable File Sharing (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Disable File Sharing (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/File Sharing/Disable File Sharing (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Disable File Sharing (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/File Sharing/Enable File Sharing.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Enable File Sharing.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/File Sharing/Enable File Sharing.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Enable File Sharing.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Network Navigation Pane/Disable Network Navigation Pane (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Network Navigation Pane/Disable Network Navigation Pane (default).reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Network Navigation Pane/Disable Network Navigation Pane (default).reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Network Navigation Pane/Disable Network Navigation Pane (default).reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Network Navigation Pane/User Network Navigation Pane choice.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Network Navigation Pane/User Network Navigation Pane choice.reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Network Navigation Pane/User Network Navigation Pane choice.reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/File Sharing/Network Navigation Pane/User Network Navigation Pane choice.reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Hibernation/Disable Hibernation (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Hibernation/Disable Hibernation (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Hibernation/Disable Hibernation (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Hibernation/Disable Hibernation (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Hibernation/Enable Hibernation.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Hibernation/Enable Hibernation.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Hibernation/Enable Hibernation.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Hibernation/Enable Hibernation.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Power-saving/Default Power-saving.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power-saving/Default Power-saving.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Power-saving/Default Power-saving.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Power-saving/Default Power-saving.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Power-saving/Disable Power-saving.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power-saving/Disable Power-saving.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Power-saving/Disable Power-saving.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Power-saving/Disable Power-saving.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep Study/Disable Sleep Study (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep Study/Disable Sleep Study (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep Study/Disable Sleep Study (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep Study/Disable Sleep Study (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep Study/Enable Sleep Study.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep Study/Enable Sleep Study.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep Study/Enable Sleep Study.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep Study/Enable Sleep Study.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep/Disable Sleep.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep/Disable Sleep.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep/Disable Sleep.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep/Disable Sleep.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep/Enable Sleep (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep/Enable Sleep (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Sleep/Enable Sleep (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Sleep/Enable Sleep (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/! Documentation.url b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/! Documentation.url similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/! Documentation.url rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/! Documentation.url diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/! MeasureSleep.exe b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/! MeasureSleep.exe similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/! MeasureSleep.exe rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/! MeasureSleep.exe diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/Disable timer resolution (default).cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/Disable timer resolution (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/Disable timer resolution (default).cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/Disable timer resolution (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/Enable timer resolution.cmd b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/Enable timer resolution.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Power/Timer Resolution/Enable timer resolution.cmd rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Timer Resolution/Enable timer resolution.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Update Notifications/Disable Update Notifications.reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Update Notifications/Disable Update Notifications.reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Update Notifications/Disable Update Notifications.reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Update Notifications/Disable Update Notifications.reg diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Update Notifications/Enable Update Notifications (default).reg b/src/playbook/Executables/AtlasDesktop/3. General Configuration/Update Notifications/Enable Update Notifications (default).reg similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Windows Update/Update Notifications/Enable Update Notifications (default).reg rename to src/playbook/Executables/AtlasDesktop/3. General Configuration/Update Notifications/Enable Update Notifications (default).reg diff --git a/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Disable Snap Layouts.reg b/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Disable Snap Layouts.reg new file mode 100644 index 0000000000..da83e17377 --- /dev/null +++ b/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Disable Snap Layouts.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +"EnableSnapAssistFlyout"=dword:00000000 +"EnableSnapBar"=dword:00000000 diff --git a/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Enable Snap Layouts (default).reg b/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Enable Snap Layouts (default).reg new file mode 100644 index 0000000000..180ec31a3b --- /dev/null +++ b/src/playbook/Executables/AtlasDesktop/4. Interface Tweaks/Snap Layouts/Enable Snap Layouts (default).reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +"EnableSnapAssistFlyout"=dword:00000001 +"EnableSnapBar"=dword:00000001 diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Process Explorer/Install Process Explorer.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Process Explorer/Install Process Explorer.cmd index 1d506fe1ac..43e5084533 100644 --- a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Process Explorer/Install Process Explorer.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Process Explorer/Install Process Explorer.cmd @@ -31,9 +31,13 @@ if %ERRORLEVEL% NEQ 0 ( echo Configuring Process Explorer... :: Run Process Explorer only in one instance reg add "HKCU\SOFTWARE\Sysinternals\Process Explorer" /v "OneInstance" /t REG_DWORD /d "1" /f > nul -sc config pcw start=disabled > nul reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v "Debugger" /t REG_SZ /d "%windir%\AtlasModules\Apps\ProcessExplorer\procexp.exe" /f > nul +echo The 'pcw' service in Windows is needed for Task Manager and performance counters. +echo Disabling it matters less as you have Process Explorer, but software and Windows might have unexpected issues. +choice /c:yn /n /m "Would you like to disable it? [Y/N] " +sc config pcw start=disabled > nul + echo] echo Finished, changes have been applied. pause diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Bluetooth/Disable Bluetooth.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Bluetooth/Disable Bluetooth.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Bluetooth/Disable Bluetooth.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Bluetooth/Disable Bluetooth.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Bluetooth/Enable Bluetooth.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Bluetooth/Enable Bluetooth (default).cmd similarity index 95% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Bluetooth/Enable Bluetooth.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Bluetooth/Enable Bluetooth (default).cmd index 48876533ff..e7cd768181 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Bluetooth/Enable Bluetooth.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Bluetooth/Enable Bluetooth (default).cmd @@ -1,5 +1,7 @@ @echo off +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -11,6 +13,7 @@ fltmc > nul 2>&1 || ( exit /b ) +:main :: Enable Bluetooth drivers and services for %%a in ( "BluetoothUserService" @@ -41,6 +44,8 @@ call toggleDev.cmd -Silent -Enable '*Bluetooth*' :: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-connectivity reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Connectivity\AllowBluetooth" /v "value" /t REG_DWORD /d "2" /f > nul +if "%~1"=="/silent" exit /b + choice /c:yn /n /m "Would you like to enable the 'Bluetooth File Transfer' Send To context menu entry? [Y/N] " if %ERRORLEVEL% == 1 call "%windir%\AtlasDesktop\4. Interface Tweaks\Context Menus\Send To\Debloat Send To Context Menu.cmd" -Enable @('Bluetooth') if %ERRORLEVEL% == 2 call "%windir%\AtlasDesktop\4. Interface Tweaks\Context Menus\Send To\Debloat Send To Context Menu.cmd" -Disable @('Bluetooth') diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Lanman Workstation (SMB)/Disable Lanman Workstation.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Lanman Workstation (SMB)/Disable Lanman Workstation.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Lanman Workstation (SMB)/Disable Lanman Workstation.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Lanman Workstation (SMB)/Disable Lanman Workstation.cmd diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Lanman Workstation (SMB)/Enable Lanman Workstation (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Lanman Workstation (SMB)/Enable Lanman Workstation (default).cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Lanman Workstation (SMB)/Enable Lanman Workstation (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Lanman Workstation (SMB)/Enable Lanman Workstation (default).cmd diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Enable Container Context Menu.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Add Container Context Menu.cmd similarity index 89% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Enable Container Context Menu.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Add Container Context Menu.cmd index 3f99dfe972..3ddbd7fdcc 100644 --- a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Enable Container Context Menu.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Add Container Context Menu.cmd @@ -29,10 +29,10 @@ reg add "HKCR\DesktopBackground\Shell\NVIDIAContainer" /v "Position" /t REG_SZ / reg add "HKCR\DesktopBackground\Shell\NVIDIAContainer" /v "SubCommands" /t REG_SZ /d "" /f > nul reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001" /v "HasLUAShield" /t REG_SZ /d "" /f > nul reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001" /v "MUIVerb" /t REG_SZ /d "Enable NVIDIA Display Container LS" /f > nul -reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\3. General Configuration\NVIDIA Display Container\Enable NVIDIA Display Container LS.cmd"" /f > nul +reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\6. Advanced Configuration\Services\NVIDIA Display Container\Enable NVIDIA Display Container LS.cmd (default)"" /f > nul reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002" /v "HasLUAShield" /t REG_SZ /d "" /f > nul reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002" /v "MUIVerb" /t REG_SZ /d "Disable NVIDIA Display Container LS" /f > nul -reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\3. General Configuration\NVIDIA Display Container\Disable NVIDIA Display Container LS.cmd"" /f > nul +reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\6. Advanced Configuration\Services\NVIDIA Display Container\Disable NVIDIA Display Container LS.cmd"" /f > nul taskkill /f /im explorer.exe > nul 2>&1 start explorer.exe diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Disable Container Context Menu.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Remove Container Context Menu (default).cmd similarity index 89% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Disable Container Context Menu.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Remove Container Context Menu (default).cmd index ca6744b7ac..408e27bc00 100644 --- a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Context Menu/Disable Container Context Menu.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Remove Container Context Menu (default).cmd @@ -1,5 +1,7 @@ @echo off +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -11,8 +13,10 @@ fltmc > nul 2>&1 || ( exit /b ) +:main :: check if the service exists reg query "HKCR\DesktopBackground\shell\NVIDIAContainer" > nul 2>&1 || ( + if "%~1"=="/silent" exit /b echo The context menu does not exist, thus you cannot continue. echo] pause @@ -28,6 +32,8 @@ reg delete "HKCR\DesktopBackground\Shell\NVIDIAContainer" /f > nul 2>&1 taskkill /f /im explorer.exe > nul 2>&1 start explorer.exe +if "%~1"=="/silent" exit /b + echo Finished, changes have been applied. pause exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Disable NVIDIA Display Container LS.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Disable NVIDIA Display Container LS.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Disable NVIDIA Display Container LS.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Disable NVIDIA Display Container LS.cmd diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Enable NVIDIA Display Container LS.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Enable NVIDIA Display Container LS (default).cmd similarity index 87% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Enable NVIDIA Display Container LS.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Enable NVIDIA Display Container LS (default).cmd index e3bb9a940f..d675c0cbfc 100644 --- a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Enable NVIDIA Display Container LS.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Enable NVIDIA Display Container LS (default).cmd @@ -1,5 +1,7 @@ @echo off +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -11,18 +13,22 @@ fltmc > nul 2>&1 || ( exit /b ) +:main :: check if the service exists reg query "HKLM\SYSTEM\CurrentControlSet\Services\NVDisplay.ContainerLocalSystem" > nul 2>&1 || ( + if "%~1"=="/silent" exit /b echo The NVIDIA Display Container LS service does not exist, you cannot continue. echo You may not have NVIDIA drivers installed. echo] pause - exit /b 1 + exit /b ) call setSvc.cmd NVDisplay.ContainerLocalSystem 2 sc start NVDisplay.ContainerLocalSystem > nul 2>&1 +if "%~1"=="/silent" exit /b + echo Finished, changes have been applied. pause exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Must Read First.url b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Must Read First.url similarity index 100% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/NVIDIA Display Container/Must Read First.url rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Must Read First.url diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Disable Network Discovery Services.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Network Discovery/Disable Network Discovery Services.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Disable Network Discovery Services.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Network Discovery/Disable Network Discovery Services.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Enable Network Discovery Services (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Network Discovery/Enable Network Discovery Services (default).cmd similarity index 85% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Enable Network Discovery Services (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Network Discovery/Enable Network Discovery Services (default).cmd index 6f64750f3f..a1b15272b1 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Network Discovery/Enable Network Discovery Services (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Network Discovery/Enable Network Discovery Services (default).cmd @@ -15,7 +15,7 @@ fltmc > nul 2>&1 || ( :main :: Enable Lanman Workstation (SMB) as a dependency -call "%windir%\AtlasDesktop\6. Advanced Configuration\Lanman Workstation (SMB)\Enable Lanman Workstation (default).cmd" /silent +call "%windir%\AtlasDesktop\6. Advanced Configuration\Services\Lanman Workstation (SMB)\Enable Lanman Workstation (default).cmd" /silent :: Enable EventLog as a dependency call setSvc.cmd eventlog 2 diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Notifications/Disable Notifications.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Notifications/Disable Notifications.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Notifications/Disable Notifications.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Notifications/Disable Notifications.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Notifications/Enable Notifications.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Notifications/Enable Notifications (default).cmd similarity index 87% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Notifications/Enable Notifications.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Notifications/Enable Notifications (default).cmd index 9491c1652d..0f175afbc5 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Notifications/Enable Notifications.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Notifications/Enable Notifications (default).cmd @@ -1,6 +1,6 @@ @echo off -if "%~1" == "/justuserservice" goto main +if "%~1" neq "" goto main set "___args="%~f0" %*" fltmc > nul 2>&1 || ( @@ -15,12 +15,11 @@ fltmc > nul 2>&1 || ( :main call "%windir%\AtlasModules\Scripts\setSvc.cmd" "WpnUserService" 2 -for /f "tokens=6 delims=[.] " %%a in ('ver') do (if %%a GEQ 22000 call :enablecenter) +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 "%~1" == "/justuserservice" exit /b sc config WpnService start=auto > nul -call :enablecenter reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener" /v "Value" /t REG_SZ /d "Allow" /f > nul reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_NOTIFICATION_SOUND" /t REG_DWORD /d "1" /f > nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d "1" /f > nul @@ -42,8 +41,4 @@ start explorer.exe echo Finished, please reboot your device for changes to apply. pause -exit /b - -:enablecenter -reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /f > nul 2>&1 exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Disable Printing.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Disable Printing.cmd similarity index 92% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Disable Printing.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Disable Printing.cmd index 8231bd4f73..4a45fc3716 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Disable Printing.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Disable Printing.cmd @@ -2,6 +2,7 @@ setlocal EnableDelayedExpansion if "%~1" == "/silent" goto main +if "%~1" == "/justcontext" goto main set "___args="%~f0" %*" fltmc > nul 2>&1 || ( @@ -53,20 +54,14 @@ for /f "tokens=6 delims=[.] " %%a in ('ver') do ( ) ) +if "%~1" == "/justcontext" exit /b + echo Disabling services... call "%windir%\AtlasModules\Scripts\setSvc.cmd" Spooler 4 call "%windir%\AtlasModules\Scripts\setSvc.cmd" PrintWorkFlowUserSvc 4 call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /hide printers -echo Disabling capabilities... -for %%a in ( - "Print.Fax.Scan~~~~0.0.1.0" - "Print.Management.Console~~~~0.0.1.0" -) do ( - dism /Online /Remove-Capability /CapabilityName:"%%a" /NoRestart > nul -) - echo Disabling features... for %%a in ( "Printing-Foundation-Features" diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Enable Printing.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Enable Printing (default).cmd similarity index 82% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Enable Printing.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Enable Printing (default).cmd index a62ecf28f3..3d5cea3c54 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Printing/Enable Printing.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Printing/Enable Printing (default).cmd @@ -1,6 +1,11 @@ @echo off setlocal EnableDelayedExpansion +if "%~1"=="/silent" goto main + +echo Enabling printing... +echo] + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -12,8 +17,8 @@ fltmc > nul 2>&1 || ( exit /b ) -echo Enabling printing... -echo] +choice /c:yn /n /m "Would you like to add 'Print' to the context menu? [Y/N] " +if "%errorlevel%" neq "1" goto :main echo Adding 'Print' to context menu... reg delete "HKCR\SystemFileAssociations\image\shell\print" /v "ProgrammaticAccessOnly" /f > nul 2>&1 @@ -50,20 +55,13 @@ for /f "tokens=6 delims=[.] " %%a in ('ver') do ( ) ) +:main echo Enabling services... call setSvc.cmd Spooler 2 call setSvc.cmd PrintWorkFlowUserSvc 3 call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide printers -echo Enabling capabilities (this might take a while)... -for %%a in ( - "Print.Fax.Scan~~~~0.0.1.0" - "Print.Management.Console~~~~0.0.1.0" -) do ( - dism /Online /Add-Capability /CapabilityName:"%%a" /NoRestart > nul -) - echo Enabling features... for %%a in ( "Printing-Foundation-Features" @@ -74,6 +72,14 @@ for %%a in ( dism /Online /Enable-Feature /FeatureName:"%%a" /NoRestart > nul ) +echo Enabling capabilities (this might take a while)... +dism /Online /Add-Capability /CapabilityName:"Print.Management.Console~~~~0.0.1.0" /NoRestart > nul + +if "%~1"=="/silent" exit /b + +choice /c:yn /n /m "Would you want to enable Fax and Scan functionality? [Y/N] " +if "%errorlevel%"=="1" dism /Online /Add-Capability /CapabilityName:"Print.Fax.Scan~~~~0.0.1.0" /NoRestart > nul + echo] echo Finished, please reboot your device for changes to apply. pause diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Disable SuperFetch.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Disable SuperFetch.cmd similarity index 87% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Disable SuperFetch.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Disable SuperFetch.cmd index 708d382bff..511b2dfebb 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Disable SuperFetch.cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Disable SuperFetch.cmd @@ -13,7 +13,7 @@ fltmc > nul 2>&1 || ( :main setlocal EnableDelayedExpansion -rem Remove lower filters for rdyboost driver +:: Remove lower filters for rdyboost driver set "key=HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}" for /f "skip=1 tokens=3*" %%a in ('reg query !key! /v "LowerFilters"') do (set val=%%a) set val=!val:rdyboost\0=! @@ -21,13 +21,13 @@ set val=!val:\0rdyboost=! set val=!val:rdyboost=! reg add "!key!" /v "LowerFilters" /t REG_MULTI_SZ /d "!val!" /f > nul -rem Disable ReadyBoost +:: Disable ReadyBoost reg add "HKLM\SYSTEM\CurrentControlSet\Services\rdyboost" /v "Start" /t REG_DWORD /d "4" /f > nul -rem Remove ReadyBoost tab +:: Remove ReadyBoost tab reg delete "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" /f > nul 2>&1 -rem Disable SysMain (Prefetch, Memory Management features) +:: Disable SysMain (Prefetch, Memory Management features) reg add "HKLM\SYSTEM\CurrentControlSet\Services\SysMain" /v "Start" /t REG_DWORD /d "4" /f > nul echo Finished, please reboot your device for changes to apply. diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Enable SuperFetch (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Enable SuperFetch (default).cmd similarity index 83% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Enable SuperFetch (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Enable SuperFetch (default).cmd index c2776cfaa1..7d89d1d02d 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Enable SuperFetch (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Superfetch/Enable SuperFetch (default).cmd @@ -1,4 +1,7 @@ @echo off + +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -13,7 +16,7 @@ fltmc > nul 2>&1 || ( :main setlocal EnableDelayedExpansion -rem Add lower filters for rdyboost driver +:: Add lower filters for rdyboost driver set "key=HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}" for /f "skip=1 tokens=3*" %%a in ('reg query "!key!" /v "LowerFilters"') do (set val=%%a) @@ -23,15 +26,17 @@ if !errorlevel! NEQ 0 ( reg add "!key!" /v "LowerFilters" /t REG_MULTI_SZ /d "!val!" /f ) -rem Enable ReadyBoost +:: Enable ReadyBoost reg add "HKLM\SYSTEM\CurrentControlSet\Services\rdyboost" /v "Start" /t REG_DWORD /d "0" /f > nul -rem Add ReadyBoost tab +:: Add ReadyBoost tab reg add "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" /f > nul -rem Enable SysMain (Prefetch, Memory Management features) +:: Enable SysMain (Prefetch, Memory Management features) reg add "HKLM\SYSTEM\CurrentControlSet\Services\SysMain" /v "Start" /t REG_DWORD /d "2" /f > nul +if "%~1"=="/silent" exit /b + echo Finished, please reboot your device for changes to apply. pause exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Configure UAC.lnk b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Configure UAC.lnk similarity index 100% rename from src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Configure UAC.lnk rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Configure UAC.lnk diff --git a/src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Disable UAC.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Disable UAC.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Disable UAC.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Disable UAC.cmd diff --git a/src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Enable UAC (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Enable UAC (default).cmd similarity index 96% rename from src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Enable UAC (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Enable UAC (default).cmd index 4c827c8828..82fa947f16 100644 --- a/src/playbook/Executables/AtlasDesktop/7. Security/User Account Control (UAC)/Enable UAC (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/User Account Control (UAC)/Enable UAC (default).cmd @@ -1,6 +1,7 @@ @echo off if /i "%~1" == "/uacSettings" goto uacSettings +if /i "%~1" == "/silent" goto main set "___args="%~f0" %*" fltmc > nul 2>&1 || ( @@ -13,6 +14,14 @@ fltmc > nul 2>&1 || ( exit /b ) +:main +call setSvc.cmd luafv 2 + +:: Unlock UserAccountControlSettings.exe +reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\UserAccountControlSettings.exe" /v "Debugger" /f > nul 2>&1 + +if /i "%~1" == "/silent" exit /b + reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d "5" /f > nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableInstallerDetection" /t REG_DWORD /d "1" /f > nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "1" /f > nul @@ -24,11 +33,6 @@ if %ERRORLEVEL% == 1 ( reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t REG_DWORD /d "0" /f > nul ) -:: Unlock UserAccountControlSettings.exe -reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\UserAccountControlSettings.exe" /v "Debugger" /f > nul 2>&1 - -call setSvc.cmd luafv 2 - echo] echo Finished, please reboot your device for changes to apply. pause diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/VPN/Disable VPN support.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/VPN/Disable VPN support.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/VPN/Disable VPN support.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/VPN/Disable VPN support.cmd diff --git a/src/playbook/Executables/AtlasDesktop/3. General Configuration/VPN/Enable VPN support (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/VPN/Enable VPN support (default).cmd similarity index 92% rename from src/playbook/Executables/AtlasDesktop/3. General Configuration/VPN/Enable VPN support (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/VPN/Enable VPN support (default).cmd index bf249a6e93..572c04f318 100644 --- a/src/playbook/Executables/AtlasDesktop/3. General Configuration/VPN/Enable VPN support (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/VPN/Enable VPN support (default).cmd @@ -1,6 +1,8 @@ @echo off setlocal EnableDelayedExpansion +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -12,6 +14,7 @@ fltmc > nul 2>&1 || ( exit /b ) +:main call toggleDev.cmd -Silent -Enable @("NDIS Virtual Network Adapter Enumerator", "Microsoft RRAS Root Enumerator", "WAN Miniport*") for %%a in ( @@ -29,6 +32,8 @@ call setSvc.cmd RasMan 2 call "%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide network-vpn /silent +if "%~1"=="/silent" exit /b + echo Finished, please reboot your device for changes to apply. pause exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Wi-Fi/Disable Wi-Fi.cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Wi-Fi/Disable Wi-Fi.cmd similarity index 100% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Wi-Fi/Disable Wi-Fi.cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Wi-Fi/Disable Wi-Fi.cmd diff --git a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Wi-Fi/Enable Wi-Fi (default).cmd b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Wi-Fi/Enable Wi-Fi (default).cmd similarity index 87% rename from src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Wi-Fi/Enable Wi-Fi (default).cmd rename to src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Wi-Fi/Enable Wi-Fi (default).cmd index 3893bdbc7e..448bfe4c6c 100644 --- a/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Wi-Fi/Enable Wi-Fi (default).cmd +++ b/src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/Wi-Fi/Enable Wi-Fi (default).cmd @@ -1,5 +1,7 @@ @echo off +if "%~1"=="/silent" goto main + set "___args="%~f0" %*" fltmc > nul 2>&1 || ( echo Administrator privileges are required. @@ -11,10 +13,13 @@ fltmc > nul 2>&1 || ( exit /b ) +:main call setSvc.cmd eventlog 2 call setSvc.cmd vwififlt 1 call setSvc.cmd WlanSvc 2 +if "%~1"=="/silent" exit /b + echo Finished, please reboot your device for changes to apply. pause exit /b \ No newline at end of file diff --git a/src/playbook/Executables/AtlasDesktop/8. Troubleshooting/Set services to defaults.cmd b/src/playbook/Executables/AtlasDesktop/8. Troubleshooting/Set services to defaults.cmd new file mode 100644 index 0000000000..1c5bad9783 --- /dev/null +++ b/src/playbook/Executables/AtlasDesktop/8. Troubleshooting/Set services to defaults.cmd @@ -0,0 +1,89 @@ +@echo off +set "title=call :title" +set "servicesPath=%windir%\AtlasDesktop\6. Advanced Configuration\Services" +if not exist "%servicesPath%" ( + echo Services in Atlas folder not found, can't continue. + if "%*"=="" pause + exit /b 1 +) +if "%~1"=="/silent" goto main + +:: TI required for full services restore +whoami /user | find /i "S-1-5-18" > nul 2>&1 || ( + call RunAsTI.cmd "%~f0" %* + exit /b +) + +echo This will reset the configuration of services in the Atlas folder. +echo Disabling services often breaks features, and if you're experiencing an issue, this might help. +echo] +choice /c:yn /n /m "Continue? [Y/N] " +if %errorlevel% neq 1 exit /b + +:main +%title% "Enabling services in the Atlas folder... This might take a while." +for /f "usebackq tokens=*" %%a in (`dir /b /s "%windir%\AtlasDesktop\6. Advanced Configuration\Services" ^| find "(default)"`) do ( + call :run "%%a" + start /min /high /wait cmd /c "%%a" /silent +) + +set "atlasOther=%windir%\AtlasModules\Other" +set "winServices=%atlasOther%\winServices.reg" +set "atlasServices=%atlasOther%\atlasServices.reg" +if exist "%winServices%" ( + if exist "%atlasServices%" call :fullRestore +) + +%title% "Finished." +if "%~1"=="/silent" exit /b +choice /c:yn /n /m "Would you like to restart? [Y/N] " +if "%errorlevel%"=="1" shutdown /r /t 0 +exit /b + +:fullRestore +%title% "Full services restoration" +echo What would you like to do? +echo] +echo 1) Restore a full services backup of the default Windows services +echo 2) Restore a full services backup of the default Atlas services +echo 3) Nothing +echo] +choice /c:123 /n /m "Choose a number: [1/2/3] " +if "%errorlevel%"=="1" reg import "%winServices%" > nul +if "%errorlevel%"=="2" reg import "%atlasServices%" > nul +exit /b + + +::::::::::::::: +:: Functions :: + exit /b +::::::::::::::: + +:: https://ss64.com/nt/syntax-strlen.html +:strlen StrVar [RtnVar] + setlocal EnableDelayedExpansion + set "s=#!%~1!" + set "len=0" + for %%N in (4096 2048 1024 512 256 128 64 32 16 8 4 2 1) do ( + if "!s:~%%N,1!" neq "" ( + set /a "len+=%%N" + set "s=!s:~%%N!" + ) + ) + endlocal&if "%~2" neq "" (set %~2=%len%) else echo %len% + exit /b + +:title + set "titleString=%~1" + call :strlen titleString dashLen + echo] & echo] + for /l %%a in (1,1,%dashLen%) do