Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


February 07, 2007

Winter Forward, Fall Back

RSS
View this exclusive article with VIP access -- click here to join |
See More VBScript Articles Here | Reprints | Or sign up for our VIP Monthly Pass!

Download the Code Here

You're probably familiar with the "spring forward, fall back" mnemonic expression to remember the seasons in which you lose and gain an hour of sleep because of daylight saving time. Well, this memory trick no longer works. Beginning this year, daylight saving time is being extended by about four weeks in the United States and Canada, which means the expression would have to be "winter forward, fall back." Somehow, this expression just doesn't do the trick.

As Jim Turner reports in "Daylight Saving Time Is Changing in 2007," starting this year daylight saving time will begin earlier than it has before. It will start on the second Sunday of March (March 11 in 2007) and end on the first Sunday of November (November 4 in 2007). In anticipation of this daylight saving time extension, Microsoft has provided a time zone update for Windows Server 2003 and Windows XP. This update also includes a few other daylight saving time changes in other parts of the world. You can download the time zone update from the Microsoft article "2007 time zone update for Microsoft Windows operating systems." Alternatively, you can edit the registry in Windows 2003 and XP machines, following the instructions provided in the Microsoft article "How to configure daylight saving time for the United States in 2007."

"To the best of my knowledge, this Microsoft update is still considered optional," reports Jim. "I suppose it's possible that Microsoft has embedded some other internal method that will adjust our computer clocks via a previous update. However, I suspect not. Unless Microsoft has (or will) include it somewhere else in its auto updates or patches, come March 11, our computer clocks won't be adjusted if this update isn't applied."

In response to the upcoming changes to daylight saving time, Jim and another Scripting Pro VIP author, Chang Lu, have written scripts that might make your job updating your machines easier:

DST_Test.vbs. The Microsoft update changes the WIN32_TimeZone component. So, Jim has written the DST_Test.vbs script to test whether the WIN32_TimeZone component has been updated on Windows 2003 and XP machines. You can download this script by clicking the "Download the Code Here" link at the top of this Web page. To use DST_Test.vbs, simply place it on the Windows 2003 or XP machine you want to test and double-click it. You'll receive a message box that states whether or not your machine has been updated.

DST_Test.vbs uses the DLS function, which Jim uses in GetDLSDates.vbs and SuperTuesday.hta. GetDLSDates.vbs tells you the dates on which daylight saving time starts and ends in the current year. SuperTuesday.hta is a HTML Application (HTA) that displays the second Tuesday (aka Super Tuesday) of a given month for up to 72 months to get a heads-up on when Microsoft releases its patches. This HTA isn't limited to finding Super Tuesdays. You can use the HTA to get a heads-up on any day of the week of any month. You can download GetDLSDates.vbs from "Don't Let Daylight Saving Time Sneak Up on You" and SuperTuesday.hta from "Plan Ahead for Patch Tuesday.". Note that the Microsoft update just described is needed for GetDLSDates.vbs to work.

SetDSTDates.vbs. Chang has written the SetDSTDates.vbs script to automate the daylight saving time changes in Active Directory (AD) environments. Unlike the Microsoft update, this script applies the daylight saving time changes to Windows 2000 machines as well as Windows 2003 and XP machines. Specifically, you can use the script on the following platforms:

  • Windows Server 2003 x64 Editions
  • Windows Server 2003
  • Windows XP 64-Bit Edition
  • Windows XP
  • Windows 2000 Server
  • Windows 2000 Professional

Chang has written a silent mode version of SetDSTDates.vbs, which is named SetDSTDates_Silent.vbs. In addition, he's written two self-executables so that you can easily execute SetDSTDates.vbs and SetDSTDates_Silent.vbs. Starting on February 14, these scripts and executables will be available in the article "Script Improves Upon Microsoft's Daylight Saving Time Patch" on the Scripting Pro VIP Web site.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Escape From Yesterworld

Kevin points you to the funniest SQL Server website ever! ...


Related Events Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing