Solved

script for changing time at given hour on windows servers?

Posted on 2007-03-28
4
207 Views
Last Modified: 2010-04-16
hi,

I need to change the time on my windows servers (2000), by shifting it one hour (summer time), now i need a script that i can use it to change the time automatically at specific time ?
0
Comment
Question by:ajalboush
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Accepted Solution

by:
thur6165 earned 250 total points
ID: 18807887
Does this have anything to do with the DST change?

http://www.fastservers.net/blog/operating-systems/the_new_dday_unsupported_oses/

This would allow you to specify the date and time to change your clock.  Look for the link in the middle of the page to download the file.
0
 
LVL 77

Assisted Solution

by:Rob Williams
Rob Williams earned 250 total points
ID: 18807956
You could create a simple batch file with the following line and add it as a scheduled event:
net time \\TimeServerName /set /yes

However, I agree, this sounds more like you need to address the daylight savings time changes. If running Win2K server or workstation, there is no update as the product is no longer supported. However, Microsoft has a couple of work arounds. If you only have a few servers and workstations the best bet is to manually make the changes. To do so you need to download the TZEdit tool, change the Daylight Savings Time start and end dates, and then change the current time zone, save the change and then change it back. The last part forces the changes to be accepted. See the following link for details (click on "Method 2: Change the time zone settings on a single computer" in the index at the top of the page):
http://support.microsoft.com/kb/914387
Don't forget steps  j & K as mentioned above.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

739 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