Last active
September 21, 2022 08:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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