📊 VBA (Excel)
Check Disable First Logon Animation Registry Value (VBA)
Reads the Disable First Logon Animation registry value via WScript.Shell.RegRead and reports it in a message box — no PowerShell or reg.exe needed.
DisableFirstLogonAnimationRegCheck.bas
Attribute VB_Name = "DisableFirstLogonAnimationRegCheck"
Option Explicit
Public Sub DisableFirstLogonAnimationRegCheck()
Dim wsh As Object
Dim regPath As String
Dim value As Variant
Set wsh = CreateObject("WScript.Shell")
regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableFirstLogonAnimation"
On Error Resume Next
value = wsh.RegRead(regPath)
On Error GoTo 0
If IsEmpty(value) Then
MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Disable First Logon Animation"
Else
MsgBox "Disable First Logon Animation" & vbCrLf & regPath & " = " & value, vbInformation
End If
End Sub