⚡ PowerShell 5.1+

Check "Disable Windows Telemetry" Status

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

By WindowsScripting.com · 774 B
Test-DisableTelemetryStatus.ps1
<#
.SYNOPSIS
    Checks whether "Disable Windows Telemetry" is currently applied.

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

.EXAMPLE
    .\Test-DisableTelemetryStatus.ps1
#>

[CmdletBinding()]
param()

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

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

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