Disable further adware

This commit is contained in:
Manuel Thalmann 2023-07-19 01:02:40 +02:00
parent 0aa49cd6d4
commit 2594791471

View file

@ -58,5 +58,11 @@ $startLayout | Add-Member -NotePropertyName "primaryOEMPins" -NotePropertyValue
$startLayout | ConvertTo-Json -Compress | Set-Content "$env:SystemDrive\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.json";
$contentDeliveryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager";
Set-ItemProperty "HKLM:\Software\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Value 1 -Type "DWord";
Set-ItemProperty "$contentDeliveryPath" -Name "ContentDeliveryAllowed" -Value 0 -Type "DWord";
Set-ItemProperty "$contentDeliveryPath" -Name "SilentInstalledAppsEnabled" -Value 0 -Type "DWord";
Set-ItemProperty "$contentDeliveryPath" -Name "SystemPaneSuggestionsEnabled" -Value 0 -Type "DWord";
Pop-Location;
Remove-Item -Recurse "$tempDir";