📊 VBA (Excel)

Apply Disable Tailored Experiences (VBA)

Stops Windows from using diagnostic data to personalize tips and ads. Applied via WScript.Shell.RegWrite from VBA.

By WindowsScripting.com · 475 B
DisableTailoredExperiencesRegSet.bas
Attribute VB_Name = "DisableTailoredExperiencesRegSet"
Option Explicit

Public Sub DisableTailoredExperiencesRegSet()
    Dim wsh As Object
    Dim regPath As String

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Privacy\TailoredExperiencesWithDiagnosticDataEnabled"

    wsh.RegWrite regPath, 0, "REG_DWORD"

    MsgBox "Disable Tailored Experiences applied." & vbCrLf & regPath, vbInformation
End Sub