Disable Dynamic Lighting by default

This commit is contained in:
Manuel Thalmann 2024-03-24 20:18:29 +01:00
parent 8556db2097
commit c3524465e4

View file

@ -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";