⚡ PowerShell 5.1+

Disable Windows Consumer Features

Stops Windows from auto-installing suggested consumer apps (requires admin). Requires an elevated (Administrator) prompt.

By WindowsScripting.com · 799 B
Set-DisableConsumerFeatures.ps1
<#
.SYNOPSIS
    Disable Windows Consumer Features.

.DESCRIPTION
    Stops Windows from auto-installing suggested consumer apps (requires admin). Requires an elevated (Administrator) prompt.

    Sets HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent \ DisableWindowsConsumerFeatures to 1.

.EXAMPLE
    .\Set-DisableConsumerFeatures.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'DisableWindowsConsumerFeatures' -Value 1 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Windows Consumer Features applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green