' ============================================================
' CheckShowSecondsInTaskbarClockStatus.vbs
'
' Checks whether "Show Seconds in Taskbar Clock" is currently applied.
'
' Usage: cscript CheckShowSecondsInTaskbarClockStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSecondsInSystemClock")

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