How to enable the taskbar clock through the registry
In this article, I’ll quickly discuss how to enable the taskbar clock and make it appear on the taskbar.
•A running terminal server that needs the clock in the taskbar
•A registry editor, like regedit.exe
•Read the Microsoft Knowledgebase article 186505 for more information (optional)
Section 1: Indicators:
There is no clearly defined way to turn the taskbar clock on through the registry. Even when the correct location in the registry is changed, no change is seen and the clock still doesn’t appear on the taskbar.
In the regsitry at HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2, the Settings value holds the data that is needed to make the clock appear.
When the clock is off, the Settings value looks like this:
28 00 00 00 FF FF FF FF 0A 00 00 00 03 00 00 00 3F 00 00 00 1E 00 00 00 FE FF Ff FF E4 03 00 00 02 05 00 00 02 04 00 00
When the clock is on, the Settings value looks like this:
28 00 00 00 FF FF FF FF 02 00 00 00 03 00 00 00 3F 00 00 00 1E 00 00 00 FE FF FF FF E4 03 00 00 02 05 00 00 02 04 00 00
The only difference is in the 9th set of hexadecimal digits. The 0A turns into a 02, which turns the clock from off to on, respectively. Making this change through a registry hack will give all your users the clock in their taskbar.
The problem is that the explorer.exe process only reads this value when it starts, so you’ll need to kill the explorer.exe process or logout and log back in to see the changes.
If you have numerous users you need to migrate this out to, you can hack this registry entry, export the changes to a .reg file, then silently import it (regedit.exe /q) into all the user’s registries upon logon using a logon script.