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