' ============================================================
' CheckDisableFirstLogonAnimationStatus.vbs
'
' Checks whether "Disable First Logon Animation" is currently applied.
'
' Usage: cscript CheckDisableFirstLogonAnimationStatus.vbs
' ============================================================

Option Explicit

Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
currentValue = objShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableFirstLogonAnimation")

If Err.Number <> 0 Then
    WScript.Echo "'EnableFirstLogonAnimation' is not set (using the Windows default)."
Else
    WScript.Echo "Current value of 'EnableFirstLogonAnimation': " & currentValue
End If
On Error Goto 0