Running Windows Core: How-to change the time and time zone
Running Windows Core Series, changing the time date and time zone.
When running these commands or using them in scripts keep in mind that some may become deprecated in future versions of Windows. Best practice is to use the PowerShell commands when possible to future proof any script that use these commands. These commands were run on Windows Server 2012R2.
When running Windows Server 2012+ without a GUI note that the GUI can be reinstalled via PowerShell (Install-WindowsFeature) and a reboot.
From Windows Server core command prompt:
To set the date and time from the command line.
PS C:>Set-Date “01/01/2015”
To sync the local time to the domain on a member server:
C:>NET TIME /SET
To sync the local time using NTP:
To view statistics on the time synchronization:
C:>W32TM /query /status
To set the time zone from the command line.
C:>TZUTIL /s “Eastern Standard Time”
To list the valid time zones for use with TZUTIL:
To list the current time zone:
If you know any other interesting ways of getting this information from a Windows Server core installation post below.
Thanks for stopping by and see other Windows Server core tips; http://blogs.technet.com/b/chad/archive/tags/server+core/default.aspx