đź“„ JScript (WSH)

Disable Background Apps Globally (JScript)

Prevents Store apps from running in the background to save resources and battery. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).

By WindowsScripting.com · 677 B
SetDisableBackgroundApps.js
// ============================================================
// SetDisableBackgroundApps.js
//
// Disable Background Apps Globally.
// Prevents Store apps from running in the background to save resources and battery.
//
// Usage: cscript SetDisableBackgroundApps.js
// ============================================================

var objShell = WScript.CreateObject("WScript.Shell");

try {
    objShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\GlobalUserDisabled", 1, "REG_DWORD");
    WScript.Echo("Disable Background Apps Globally applied.");
} catch (e) {
    WScript.Echo("Failed to apply tweak: " + e.description);
}