Disable Dynamic Lighting by default
This commit is contained in:
parent
d5c709a556
commit
b834b7d0f6
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue