From 0119f1931cdabdfbd7fab7889b884d9ba104b6b6 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:38:45 +0100 Subject: [PATCH] fix: don't disable DisplayEnhancementService Labelled as 'Not recommended' - DispBrokerDesktopSvc is required in 24H2 for some things, I'd rather not have DisplayEnhancementService break something as well --- src/playbook/Configuration/tweaks.yml | 1 - .../Configuration/tweaks/scripts/script-finalize.yml | 8 -------- src/playbook/Executables/FINALIZE.ps1 | 10 ---------- 3 files changed, 19 deletions(-) delete mode 100644 src/playbook/Configuration/tweaks/scripts/script-finalize.yml delete mode 100644 src/playbook/Executables/FINALIZE.ps1 diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml index ef79227658..44c4512d53 100644 --- a/src/playbook/Configuration/tweaks.yml +++ b/src/playbook/Configuration/tweaks.yml @@ -332,7 +332,6 @@ tasks: - tweaks\scripts\script-mitigations.yml - tweaks\scripts\script-devices.yml - tweaks\scripts\script-pfp.yml - - tweaks\scripts\script-finalize.yml - tweaks\scripts\script-backup2.yml - tweaks\scripts\script-clientcbs.yml diff --git a/src/playbook/Configuration/tweaks/scripts/script-finalize.yml b/src/playbook/Configuration/tweaks/scripts/script-finalize.yml deleted file mode 100644 index 44809786c9..0000000000 --- a/src/playbook/Configuration/tweaks/scripts/script-finalize.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Final Tweaks -description: Runs any tweaks that are miscellaneous but need more advanced scripting features -actions: - - !powerShell: - command: '.\FINALIZE.ps1' - exeDir: true - wait: true diff --git a/src/playbook/Executables/FINALIZE.ps1 b/src/playbook/Executables/FINALIZE.ps1 deleted file mode 100644 index 6df42a5602..0000000000 --- a/src/playbook/Executables/FINALIZE.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -# Disable brightness slider service if it's not supported on the current display -$startup = 'Automatic' -try { - Get-CimInstance -Class WmiMonitorBrightnessMethods -Namespace root/wmi -ErrorAction Stop | Out-Null -} catch { - if ((Get-ComputerInfo).CsPCSystemType -eq 'Desktop') { - $startup = 'Disabled' - } -} -Set-Service -Name DisplayEnhancementService -StartupType $startup \ No newline at end of file