Skip to content

Instantly share code, notes, and snippets.

@t0r0X
Last active September 21, 2022 08:09
Show Gist options
  • Select an option

  • Save t0r0X/d0efcd5282c7ffeb2b51668346f9cbaf to your computer and use it in GitHub Desktop.

Select an option

Save t0r0X/d0efcd5282c7ffeb2b51668346f9cbaf to your computer and use it in GitHub Desktop.
Enable the display of current time "seconds" part in Windows system tray clock, by changing the registry settings with PowerShell commands.
# Kudos @ Christian S.
# Changes might need restarting the Windows desktop ("explorer.exe") or logging out and back in, or rebooting the computer.
# query, might fail if key does not exist
Get-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSecondsInSystemClock
# enable
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSecondsInSystemClock -PropertyType DWord -Value 1
# disable
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSecondsInSystemClock -PropertyType DWord -Value 0
# delete key
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSecondsInSystemClock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment