⚡ PowerShell 5.1+

Check "Disable Background Apps Globally" Status

Reads the current registry value behind the "Disable Background Apps Globally" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 846 B
Test-DisableBackgroundAppsStatus.ps1
<#
.SYNOPSIS
    Checks whether "Disable Background Apps Globally" is currently applied.

.DESCRIPTION
    Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications \ GlobalUserDisabled and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-DisableBackgroundAppsStatus.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications'

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

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