📊 VBA (Excel)
Check Disable Windows Consumer Features Registry Value (VBA)
Reads the Disable Windows Consumer Features registry value via WScript.Shell.RegRead and reports it in a message box — no PowerShell or reg.exe needed.
DisableConsumerFeaturesRegCheck.bas
Attribute VB_Name = "DisableConsumerFeaturesRegCheck"
Option Explicit
Public Sub DisableConsumerFeaturesRegCheck()
Dim wsh As Object
Dim regPath As String
Dim value As Variant
Set wsh = CreateObject("WScript.Shell")
regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableWindowsConsumerFeatures"
On Error Resume Next
value = wsh.RegRead(regPath)
On Error GoTo 0
If IsEmpty(value) Then
MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Disable Windows Consumer Features"
Else
MsgBox "Disable Windows Consumer Features" & vbCrLf & regPath & " = " & value, vbInformation
End If
End Sub