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