📊 VBA (Excel)

Check Disable Remote Assistance Registry Value (VBA)

Reads the Disable Remote Assistance registry value via WScript.Shell.RegRead and reports it in a message box — no PowerShell or reg.exe needed.

By WindowsScripting.com · 658 B
DisableRemoteAssistanceRegCheck.bas
Attribute VB_Name = "DisableRemoteAssistanceRegCheck"
Option Explicit

Public Sub DisableRemoteAssistanceRegCheck()
    Dim wsh As Object
    Dim regPath As String
    Dim value As Variant

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Remote Assistance\fAllowToGetHelp"

    On Error Resume Next
    value = wsh.RegRead(regPath)
    On Error GoTo 0

    If IsEmpty(value) Then
        MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Disable Remote Assistance"
    Else
        MsgBox "Disable Remote Assistance" & vbCrLf & regPath & " = " & value, vbInformation
    End If
End Sub