⚡ PowerShell 5.1+
Disable Background Apps Globally
Prevents Store apps from running in the background to save resources and battery.
Set-DisableBackgroundApps.ps1
<#
.SYNOPSIS
Disable Background Apps Globally.
.DESCRIPTION
Prevents Store apps from running in the background to save resources and battery.
Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications \ GlobalUserDisabled to 1.
.EXAMPLE
.\Set-DisableBackgroundApps.ps1
#>
[CmdletBinding()]
param()
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications'
if (-not (Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
New-ItemProperty -Path $regPath -Name 'GlobalUserDisabled' -Value 1 -PropertyType DWord -Force | Out-Null
Write-Host "Disable Background Apps Globally applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green