📊 VBA (Excel)

Apply Disable Windows Consumer Features (VBA)

Stops Windows from auto-installing suggested consumer apps (requires admin). Applied via WScript.Shell.RegWrite from VBA. Requires an elevated (Administrator) prompt.

By WindowsScripting.com · 460 B
DisableConsumerFeaturesRegSet.bas
Attribute VB_Name = "DisableConsumerFeaturesRegSet"
Option Explicit

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

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableWindowsConsumerFeatures"

    wsh.RegWrite regPath, 1, "REG_DWORD"

    MsgBox "Disable Windows Consumer Features applied." & vbCrLf & regPath, vbInformation
End Sub