⚡ PowerShell 5.1+

Check "Show Seconds in Taskbar Clock" Status

Reads the current registry value behind the "Show Seconds in Taskbar Clock" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 855 B
Test-ShowSecondsInTaskbarClockStatus.ps1
<#
.SYNOPSIS
    Checks whether "Show Seconds in Taskbar Clock" is currently applied.

.DESCRIPTION
    Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ ShowSecondsInSystemClock and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-ShowSecondsInTaskbarClockStatus.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'

$value = Get-ItemProperty -Path $regPath -Name 'ShowSecondsInSystemClock' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'ShowSecondsInSystemClock' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of 'ShowSecondsInSystemClock': $($value.'ShowSecondsInSystemClock')" -ForegroundColor Green
}