Disable Dynamic Lighting by default

This commit is contained in:
Manuel Thalmann 2024-03-24 20:18:29 +01:00
parent d5c709a556
commit b834b7d0f6

View file

@ -24,6 +24,11 @@ $action = {
Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty"; Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty";
Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String"; 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"; Write-Information "Disabling adware";
$winKey = "$($userKey.PSPath)\Software\Microsoft\Windows\CurrentVersion"; $winKey = "$($userKey.PSPath)\Software\Microsoft\Windows\CurrentVersion";
$contentDeliveryKey = "$winKey\ContentDeliveryManager"; $contentDeliveryKey = "$winKey\ContentDeliveryManager";