Remove chat icon by default

This commit is contained in:
Manuel Thalmann 2023-07-19 16:01:29 +02:00
parent fa035a29b2
commit 62ae88778c

View file

@ -25,7 +25,8 @@ $action = {
Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String"; Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String";
Write-Information "Disabling adware"; Write-Information "Disabling adware";
$contentDeliveryKey = "$($userKey.PSPath)\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; $winKey = "$($userKey.PSPath)\Software\Microsoft\Windows\CurrentVersion";
$contentDeliveryKey = "$winKey\ContentDeliveryManager";
$cloudContentKey = "HKLM:\Software\Policies\Microsoft\Windows\CloudContent"; $cloudContentKey = "HKLM:\Software\Policies\Microsoft\Windows\CloudContent";
foreach ($key in @($contentDeliveryKey, $cloudContentKey)) { foreach ($key in @($contentDeliveryKey, $cloudContentKey)) {
@ -37,6 +38,7 @@ $action = {
Set-ItemProperty "$cloudContentKey" -Name "DisableWindowsConsumerFeatures" -Value 1 -Type "DWord"; Set-ItemProperty "$cloudContentKey" -Name "DisableWindowsConsumerFeatures" -Value 1 -Type "DWord";
Set-ItemProperty "$cloudContentKey" -Name "DisableCloudOptimizedContent" -Value 1 -Type "DWord"; Set-ItemProperty "$cloudContentKey" -Name "DisableCloudOptimizedContent" -Value 1 -Type "DWord";
Set-ItemProperty "$cloudContentKey" -Name "DisableConsumerAccountStateContent" -Value 1 -Type "DWord"; Set-ItemProperty "$cloudContentKey" -Name "DisableConsumerAccountStateContent" -Value 1 -Type "DWord";
Set-ItemProperty "$winKey\Explorer\Advanced" -Name "TaskBarMn" -Value 0 -Type "DWord";
Set-ItemProperty "$contentDeliveryKey" -Name "ContentDeliveryAllowed" -Value 0 -Type "DWord"; Set-ItemProperty "$contentDeliveryKey" -Name "ContentDeliveryAllowed" -Value 0 -Type "DWord";
Set-ItemProperty "$contentDeliveryKey" -Name "SilentInstalledAppsEnabled" -Value 0 -Type "DWord"; Set-ItemProperty "$contentDeliveryKey" -Name "SilentInstalledAppsEnabled" -Value 0 -Type "DWord";
Set-ItemProperty "$contentDeliveryKey" -Name "SystemPaneSuggestionsEnabled" -Value 0 -Type "DWord"; Set-ItemProperty "$contentDeliveryKey" -Name "SystemPaneSuggestionsEnabled" -Value 0 -Type "DWord";