Batch File for Windows Date and Time - Dual Boot

lewis94

New member
Local time
3:44 PM
Messages
3
Morning All,

A long time reader and user of advice on the forum but in need of advice if possible.

Long story short but for work purposes I have to have a Win 7 dual boot system that I need to log in and change the time to USA regional time on one of my setups.

A number of times I have inadvertently forgot to change my time and date settings and either cant login to my secure network or when sending emails I get errors messages due to time and date settings.

Is there anyway I can add in a batch command on start up to setup the local date and time ?

Any advice much appreciated
 

My Computer My Computer

Computer type
PC/Desktop
OS
windows 7 home premium
Hi Lewis, and welcome to Sevenforums,

What exact timezone are you after?

To change the current timezone setting to, for example, the Central America Standard Time (UTC-06:00), the command would be
Code:
tzutil /s "Central America Standard Time"

A list of valid timezone IDs can be viewed via tzutil /l.

Once you have the command you need, simply wrap the command into a batch file then place the script into the Startup folder.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Thank you vey much worked a treat.

Is there anyway to then force it to do a check against an internet time site to make sure it is current?
 

My Computer My Computer

Computer type
PC/Desktop
OS
windows 7 home premium
Hi,
What type of dual boot are you using,
The only type I can think of that would change the time would be a Linux in dual boot with windows :/
Been there :)
Cheers.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom assembled by me :}
OS
Win-7-Pro64bit 7-H-Prem-64bit
CPU
i7-5930K 2nd i9-9940x both water blocked VRM's too
Motherboard
ASUS SABERTOOTH X99 2nd ASUS x299 Apex
Memory
Trident-z 3200C14 2nd Trident-z 3600C16
Graphics Card(s)
EVGA 1080ti ftw3 2nd Titan Xp both water blocked
Sound Card
Built-in Realtek
Monitor(s) Displays
1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24" 144Hz
Screen Resolution
1920 x 1080 144Hz
Hard Drives
2-Samsung M.2 Evo & Evo Plus
2-Samsung 850 EVO 500GB SSD's/ 3-2.5 W.D. Black 1tb-&3-1tb/3-3.5 WD Black 1tb hdd's
PSU
EVGA SuperNOVA 1000-P2 2nd 1200-P2
Case
2-Corsair Obsidian Series 450D Black ATX Mid Tower
Cooling
Custom water loops
Keyboard
Logitech G710+/ 2nd Logitech G910
Mouse
2-RedDragon M901 Perdition 16400 dpi Gaming mouse = wired
Internet Speed
Comcast Ping 19ms 89.31mbps download speed 6.12mbps upload
Antivirus
Malwarebytes Pro/ Superantispyware Pro
Browser
FireFox & Pale moon
Other Info
2nd ASUS X299 Apex/Intel i9-9940x with Custom water loop/7H-Prem-x64/Corsair 450D case/Ram Trident-z 3600C16 4x8gb / Samsung970Evo plus 500gb SSD/Dual ssd EZ swap evo/PSU EVGA SuperNova 1200w-P2 80+Platinum/GPU Titan Xp /8-ML-140 on push-pull on 2-280GTX rads
Sorry yes it is a Linux/windows boot
 

My Computer My Computer

Computer type
PC/Desktop
OS
windows 7 home premium
Is there anyway to then force it to do a check against an internet time site to make sure it is current?

Are we now talking about setting the actual datetime?

If you're connected to a network you can run a simple command to sync your time with that of another Windows machine on the network. It's the easiest way.
Code:
net time \\[COLOR="Red"]ComputerName[/COLOR] /set /yes
Note: changing the datetime requires administrator privileges. An elevated command prompt may be required.


Checking your machine's time against an internet time server can be done through batch (with the help of a few powershell calls), but it's not so straight forward of a task.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom assembled by me :}
OS
Win-7-Pro64bit 7-H-Prem-64bit
CPU
i7-5930K 2nd i9-9940x both water blocked VRM's too
Motherboard
ASUS SABERTOOTH X99 2nd ASUS x299 Apex
Memory
Trident-z 3200C14 2nd Trident-z 3600C16
Graphics Card(s)
EVGA 1080ti ftw3 2nd Titan Xp both water blocked
Sound Card
Built-in Realtek
Monitor(s) Displays
1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24" 144Hz
Screen Resolution
1920 x 1080 144Hz
Hard Drives
2-Samsung M.2 Evo & Evo Plus
2-Samsung 850 EVO 500GB SSD's/ 3-2.5 W.D. Black 1tb-&3-1tb/3-3.5 WD Black 1tb hdd's
PSU
EVGA SuperNOVA 1000-P2 2nd 1200-P2
Case
2-Corsair Obsidian Series 450D Black ATX Mid Tower
Cooling
Custom water loops
Keyboard
Logitech G710+/ 2nd Logitech G910
Mouse
2-RedDragon M901 Perdition 16400 dpi Gaming mouse = wired
Internet Speed
Comcast Ping 19ms 89.31mbps download speed 6.12mbps upload
Antivirus
Malwarebytes Pro/ Superantispyware Pro
Browser
FireFox & Pale moon
Other Info
2nd ASUS X299 Apex/Intel i9-9940x with Custom water loop/7H-Prem-x64/Corsair 450D case/Ram Trident-z 3600C16 4x8gb / Samsung970Evo plus 500gb SSD/Dual ssd EZ swap evo/PSU EVGA SuperNova 1200w-P2 80+Platinum/GPU Titan Xp /8-ML-140 on push-pull on 2-280GTX rads
Back
Top