📜 VBScript (WSH)
Check "Disable Background Apps Globally" Status (VBScript)
Reads the registry value behind the "Disable Background Apps Globally" tweak to confirm whether it's applied.
CheckDisableBackgroundAppsStatus.vbs
' ============================================================
' CheckDisableBackgroundAppsStatus.vbs
'
' Checks whether "Disable Background Apps Globally" is currently applied.
'
' Usage: cscript CheckDisableBackgroundAppsStatus.vbs
' ============================================================
Option Explicit
Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\GlobalUserDisabled")
If Err.Number <> 0 Then
WScript.Echo "'GlobalUserDisabled' is not set (using the Windows default)."
Else
WScript.Echo "Current value of 'GlobalUserDisabled': " & currentValue
End If
On Error Goto 0