Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch file to disable Daylight saving time for remote machine  (Read 15734 times)

0 Members and 1 Guest are viewing this topic.

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Batch file to disable Daylight saving time for remote machine
« on: September 08, 2015, 10:39:32 PM »
Dear all,

I made a batch file to disable daylight saving time for a remote machine, "the machine is using windows xp service pack 2"  as figure 1 and 2 but after using it and rebooting this machine i found The daylight saving time "check box" is unchecked successfully but the machine still using daylight saving time as figure 3  , i dont know why that happened and why don't affect
If any one has any idea to do real different please help
the Batch file and the screen shoot for the Impact is here


[attachment deleted by admin to conserve space]

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: Batch file to disable Daylight saving time for remote machine
« Reply #1 on: September 09, 2015, 06:27:09 AM »
When is the last time the computer synced with a Time Server?  You seem to be missing that tab in the Date and Time Properties Window.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Batch file to disable Daylight saving time for remote machine
« Reply #2 on: September 09, 2015, 06:42:59 AM »
Also i believe when that box is unticked the time stays set to the current window...
" Anyone who goes to a psychiatrist should have his head examined. "

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #3 on: September 10, 2015, 03:17:45 PM »
When is the last time the computer synced with a Time Server?  You seem to be missing that tab in the Date and Time Properties Window.

Dear Squashman ,
there is no issue  with synchronization with the server but some times the machines lost this syncing and we must fix this issue so i want to make (a batch file to disable daylight saving time for every machine as a variable) and make other( batch to do that for all machines in one click)
and as i said before my batch i working and give me message successfully but i can't see any impact on the machine as you see in previous figures and my attached batch.
So, if you want to help for editing the batch or any suggestion‏  please i am listening for you.

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #4 on: September 10, 2015, 03:21:04 PM »
Also i believe when that box is unticked the time stays set to the current window...

Dear patio,

I can't understand what you said so please explain more.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Batch file to disable Daylight saving time for remote machine
« Reply #5 on: September 10, 2015, 04:16:43 PM »
Dear patio,

I can't understand what you said so please explain more.

It was 6:49 when unticked...it was 6:52 in your last screenshot...in other words the time does not change when the setting is changed...
" Anyone who goes to a psychiatrist should have his head examined. "

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #6 on: September 11, 2015, 09:58:39 AM »
It was 6:49 when unticked...it was 6:52 in your last screenshot...in other words the time does not change when the setting is changed...

patio
if have idea to edit the batch or create other batch with other batch codes to do real change plz help. 

Salmon Trout

  • Guest
Re: Batch file to disable Daylight saving time for remote machine
« Reply #7 on: September 11, 2015, 10:05:53 AM »
Will the time change, just because you disable DST? I have a feeling that the main effect is that, the next date the clocks change, the system does not alter the time.

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #8 on: September 11, 2015, 12:14:13 PM »
Will the time change, just because you disable DST? I have a feeling that the main effect is that, the next date the clocks change, the system does not alter the time.

Ok Salmon Trout

Where is the key related to DST in registry in windows XP and how to make it disabled.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Batch file to disable Daylight saving time for remote machine
« Reply #9 on: September 11, 2015, 01:00:00 PM »
Will the time change, just because you disable DST? I have a feeling that the main effect is that, the next date the clocks change, the system does not alter the time.

That's perceptive.

@Abo-Zead  You want to change the time zone figure.

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #10 on: September 11, 2015, 04:38:10 PM »
That's perceptive.

@Abo-Zead  You want to change the time zone figure.


yes foxidrive,

you want to help or what are you meaning by That's perceptive
and I want to disable daylight saving time key only not all time zones keys could you help

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Batch file to disable Daylight saving time for remote machine
« Reply #11 on: September 11, 2015, 06:44:51 PM »
what are you meaning by That's perceptive

I meant that the task has two portions and you are only doing one of them.
Salmon Trout recognised that.

As well as disabling the automatic changing of daylight savings, presuming that is what you want to do, then the second part is that you have to restore the correct timezone in Windows to get the time back to what it should be (assuming it is daylight saving time of year when you disable the automatic change).

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #12 on: September 11, 2015, 07:43:03 PM »
I meant that the task has two portions and you are only doing one of them.
Salmon Trout recognised that.

As well as disabling the automatic changing of daylight savings, presuming that is what you want to do, then the second part is that you have to restore the correct timezone in Windows to get the time back to what it should be (assuming it is daylight saving time of year when you disable the automatic change).

Dear foxidrive

Could you tell me what are the name of keys must be changed and Where it's path in registry editor .
my local time zone is Cairo in Egypt

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #13 on: September 11, 2015, 09:32:13 PM »
Some things of interest.
DST is not an option in all time zones.
See here:
Time zones that do not observe daylight saving time
Quote
Assume that you live in a region that does not observe daylight saving time (DST), but the Windows setting for that time zone does adjust for daylight saving time. In this situation, we recommend that you do not clear the Automatically adjust clock for Daylight Saving Time check box in the Time Zone Settings dialog box.
The above contains a link to:
Daylight Saving Time Help and Support Center
Quote
Daylight saving time (DST), and "Summer Time" in much of Europe, is the practice of moving local time forward one hour in the spring and backwards in the autumn. These spring and autumnal shifts to DST are different between northern and southern hemispheres. The start of DST in the northern hemisphere is usually in March or April (depending on the country/continent), and ending in October or November. In the southern hemisphere, the changes are the opposite, with DST beginning in October and ending in March or April.
Most countries of the world do not use DST.  Thus, those places do not have a definition of  DST.  Therefore in such areas DST  should not be used and may give unexpected results, r even no charges.
Each location can have its own rules for DST.
This link relates to Ciro, Egypt.
Time zone in Cairo, Egypt (Al Qâhirah)
Note the table for Cairo, Egypt DST  is not the same as some other nearby  areas. It is very different from what one might expect.

Hop this is of some help.   :)
« Last Edit: September 11, 2015, 09:48:15 PM by Geek-9pm »

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: Batch file to disable Daylight saving time for remote machine
« Reply #14 on: September 12, 2015, 11:12:43 AM »
Some things of interest.
DST is not an option in all time zones.
See here:
Time zones that do not observe daylight saving timeThe above contains a link to:
Daylight Saving Time Help and Support CenterMost countries of the world do not use DST.  Thus, those places do not have a definition of  DST.  Therefore in such areas DST  should not be used and may give unexpected results, r even no charges.
Each location can have its own rules for DST.
This link relates to Ciro, Egypt.
Time zone in Cairo, Egypt (Al Qâhirah)
Note the table for Cairo, Egypt DST  is not the same as some other nearby  areas. It is very different from what one might expect.

Hop this is of some help.   :)


Dear Geek

thank you for your advice and your effort but my question here can me do what i want by using batch only or not and if i can  do that could you help me in writing this batch.