Remove chat icon by default
This commit is contained in:
parent
fa035a29b2
commit
62ae88778c
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,8 @@ $action = {
|
|||
Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String";
|
||||
|
||||
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";
|
||||
|
||||
foreach ($key in @($contentDeliveryKey, $cloudContentKey)) {
|
||||
|
@ -37,6 +38,7 @@ $action = {
|
|||
Set-ItemProperty "$cloudContentKey" -Name "DisableWindowsConsumerFeatures" -Value 1 -Type "DWord";
|
||||
Set-ItemProperty "$cloudContentKey" -Name "DisableCloudOptimizedContent" -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 "SilentInstalledAppsEnabled" -Value 0 -Type "DWord";
|
||||
Set-ItemProperty "$contentDeliveryKey" -Name "SystemPaneSuggestionsEnabled" -Value 0 -Type "DWord";
|
||||
|
|
Loading…
Reference in a new issue