Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch File for Windows Date and Time - Dual Boot

01 Mar 2015   #1
lewis94

windows 7 home premium
 
 
Batch File for Windows Date and Time - Dual Boot

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 System SpecsSystem Spec
.
01 Mar 2015   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

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 System SpecsSystem Spec
02 Mar 2015   #3
lewis94

windows 7 home premium
 
 

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 System SpecsSystem Spec
.

02 Mar 2015   #4
ThrashZone

Win-7-Pro64bit 7-H-Prem-64bit
 
 

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 System SpecsSystem Spec
02 Mar 2015   #5
lewis94

windows 7 home premium
 
 

Sorry yes it is a Linux/windows boot
My System SpecsSystem Spec
03 Mar 2015   #6
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by lewis94 View Post
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 \\ComputerName /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 System SpecsSystem Spec
04 Mar 2015   #7
ThrashZone

Win-7-Pro64bit 7-H-Prem-64bit
 
 

Quote   Quote: Originally Posted by lewis94 View Post
Sorry yes it is a Linux/windows boot
Okay yes I had the same issue,
The solution is posted in Newbie questions here,

My question is now at the bottom of page 2,
"Solved" Clock 6 hours advanced switching back to win-7
Linux Mint Forums
My System SpecsSystem Spec
Reply

 Batch File for Windows Date and Time - Dual Boot




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How do I detect a dual boot through a batch file
Here is my issue. I have employees installing dual booting on computers, effectively bypassing security software that is installed. Is there a batch I can run to detect this, and output the results to a file ( on the network of course ) or something of that nature? I need a way to circumvent...
Installation & Setup
Resetting A File/File's Date-Time
I have a folder full of jpg files that I want to all have the exact date and time (as indicated by the explorer view 'List' date column). Is this possible? thnx
General Discussion
Is there a Script or batch file that can create folders by date range
I was wondering if there was a way to create a set of folders in a specific directory according to a date range that i input. ie. Select start date 2011 10 01 select end date 2012 10 01 Select Output path of c:\users\XXXX\desktop\export data
General Discussion
How to create a current date folder using batch file?
Hi I am using following batch file for cleaning the desktop and also for taking backup of desktop: @echo off set curr_date=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2% mkdir "%USERPROFILE%\My Documents\backup\%curr_date%_backup"
General Discussion
Batch file to create a folder with name of the time.
I'm trying to write a batch file that when run creates a folder named "Backup" followed by the time it was created, and then copies files to that folder. When I run md "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Backups\Backup %DATE%\" xcopy /e /v /y...
Backup and Restore
Batch file , change filename with system date and time infor
I wrote a bat file, to change a file name, test.txt to testMonthDayYearTime.txt here is what i wrote: ren c:\example\test.txt test%date:~4,2%%date:~7,2%%date:~10,4%%time:~0,2%%time:~3,2%%time:~6,2%%.txt But after running, the file name is test12182010 093012.txt, a space is ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App