From b834b7d0f6995eb435f2bde5a2e10b14d511bb5c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 24 Mar 2024 20:18:29 +0100 Subject: [PATCH] Disable Dynamic Lighting by default --- scripts/Windows/Config/Windows/Install.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Windows/Config/Windows/Install.ps1 b/scripts/Windows/Config/Windows/Install.ps1 index 1e17483c..f789a90c 100644 --- a/scripts/Windows/Config/Windows/Install.ps1 +++ b/scripts/Windows/Config/Windows/Install.ps1 @@ -24,6 +24,11 @@ $action = { Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty"; Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String"; + Write-Information "Disabling Dynamic Lighting"; + $keyPath = "$($userKey.PSPath)\Software\Microsoft\Lighting"; + New-Item $keyPath; + Set-ItemProperty "$keyPath" -Name "AmbientLightingEnabled" -Value "0" -Type "DWord"; + Write-Information "Disabling adware"; $winKey = "$($userKey.PSPath)\Software\Microsoft\Windows\CurrentVersion"; $contentDeliveryKey = "$winKey\ContentDeliveryManager";