⚡ PowerShell 5.1+

Check "Disable Windows Consumer Features" Status

Reads the current registry value behind the "Disable Windows Consumer Features" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 865 B
Test-DisableConsumerFeaturesStatus.ps1
<#
.SYNOPSIS
    Checks whether "Disable Windows Consumer Features" is currently applied.

.DESCRIPTION
    Reads HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent \ DisableWindowsConsumerFeatures and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-DisableConsumerFeaturesStatus.ps1
#>

[CmdletBinding()]
param()

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

$value = Get-ItemProperty -Path $regPath -Name 'DisableWindowsConsumerFeatures' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'DisableWindowsConsumerFeatures' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of 'DisableWindowsConsumerFeatures': $($value.'DisableWindowsConsumerFeatures')" -ForegroundColor Green
}