Show the clock - Taskbar and Start Menu Properties - Notification Area

Posted on 2009-04-22
Last Modified: 2013-11-21
I have a domain controller for a domain called In this domain I have few Windows 2003 Servers for all this machines I want when an user is login on the clock icon from the notification area to be displayed. This are the steps I have done already:
I create a group policy for all the users from this domain with this rule: User Configuration -> Start Menu and Taskbar -> Remove Clock from the system notification area -> Disabled
I create this logon script:
' VBScript.
On Error Resume Next
Dim Shell
Set Shell = CreateObject("WScript.Shell")
shell.Run "C:\windows\regedit.exe /s \\server_name\clock.reg"

' clock.reg file
Windows Registry Editor Version 5.00

Still no luck when a user is logged on the clock is not shown.
I need some help with this because I want to put in this domain 100 windows 2003 servers.
Thank you.
Question by:BetfairRomania
    LVL 28

    Expert Comment

    What I suspect may be happening is that the setting is not being saved between logins.  That is, the GPO gets applied during logon, but Explorer has already started with the clock hidden.  Then at logoff, the registry setting is not saved (since it came from GPO).  Around and around you go, with Explorer always starting while the hide clock value is still enabled.

    My suggestion:  put these registry settings in a .reg and import with a logon script.  Then log off and back on.
    LVL 10

    Expert Comment

    After logging in, try killing the explorer process and restarting it to see if the clock comes back.  Its easiest done from the cmd prompt.

    type taskkill /f /im explorer.exe and enter...the desktop should disappear...then type start explorer and your desktop should come back.

    Let me know what happens

    Author Comment



    i already put this registry settings in a .reg file and I import this reg files with a VBS logon script as I describe in the body of my question.


    i killed and start explorer process and clock is here
    is working in this way
    I need to this on all my machines?

    Thank you.
    LVL 10

    Accepted Solution

    What you can try is to add the following into your vbs script that is run at login.
    On Error Resume Next
    Dim Shell
    Set Shell = CreateObject("WScript.Shell")
    shell.Run "C:\windows\regedit.exe /s \\server_name\clock.reg"
    shell.Run "cmd /c taskkill /f /im explorer.exe"
    wscript.sleep 1000
    shell.Run "explorer"

    Open in new window


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
    Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now