📊 VBA (Excel)

Check Disable Fast Startup Registry Value (VBA)

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

By WindowsScripting.com · 643 B
DisableFastStartupRegCheck.bas
Attribute VB_Name = "DisableFastStartupRegCheck"
Option Explicit

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

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power\HiberbootEnabled"

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

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