📜 VBScript (WSH)
Disable Background Apps Globally (VBScript)
Prevents Store apps from running in the background to save resources and battery. Applies the tweak via WScript.Shell.RegWrite.
SetDisableBackgroundApps.vbs
' ============================================================
' SetDisableBackgroundApps.vbs
'
' Disable Background Apps Globally.
' Prevents Store apps from running in the background to save resources and battery.
'
' Usage: cscript SetDisableBackgroundApps.vbs
' ============================================================
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\GlobalUserDisabled", 1, "REG_DWORD"
If Err.Number = 0 Then
WScript.Echo "Disable Background Apps Globally applied."
Else
WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0