Main Webpage


    Terminal Services Bulletin Board
    Links and Downloads
    Matthew Harris' Resume
    Contact the admin


    Disable the X box on the Terminal Services Client
    Change the client version of the Terminal Services Client
    Add the clock to the taskbar through the registry
    Make all processes appear in the Task Manager through a registry hack
    Prevent disconnects and stabilize your terminal services connection
    Fix your TSAdmin application when it becomes nonfunctional on the taskbar
    Disable/Enable all terminal services logons through the registry


    Restrict users to one session and reconnect them
    Share the redirected printer automatically
    Map your client's printer to an LPT port
    Rename client redirected printers
    Restrict users to only one terminal services session
    Automatically connect disconnected users back to their sessions
    Force software license compliance through a script
    How to reset all your TS sessions at once

Hard to Diagnose Problems

    Incorrect IE permissions can disable opening new IE windows

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.