http://www.windowsnetworking.com/articles-tutorials/windows-7/Configuring-Time-Windows-7-Win-2008-R2.html

The importance of having correctly configured time on a PC or server. We will then move on to what is new with Windows 7 when it comes to time configuration. Finally, what happens with the NTP configuration when a server becomes a domain controller.

Introduction

When it comes to the appliances or clocks around the house, it does not really matter if the time is completely accurate. It is normal for them to be a few minutes off. However, with cellular phones and computers today, we have the expectation that the time (and especially the date) will be 100% accurate, without fail (or at least I have that expectation). It's not that this is just "nice", correct time and date are actually required for many enterprise infrastructure features to work. For example, servers and PC clients participating in Windows Active Directory must have the right date & time or else authentication will fail.

I have a server whose onboard battery is bad. If it loses power and comes back up, the date and time are wrong. The server boots up and appears to work, however, I cannot connect to it via RDP because of the significant date difference. This happens because, for the security certificates to validate, the date between the server and client must be, at least, "close". Also, with it being a domain controller, this time issue could cause the whole AD domain to be unable to authenticate.

What's different in Windows 7 related to time and date?

Honestly, the Windows Vista and Windows 7 time and date configuration is very similar. By double-clicking on the taskbar clock you will bring up the Date and Time configuration where you will configure the date, time, timezone, additional clocks, and Internet time.

The only difference that I could find is the reminder for daylight savings time. In Windows Vista, the default is toRemind me one week before this change occurs. With that setting, of course, you would get one week advance notice before the clock "springs forward" or "falls back".

Figure 1: Windows 7 Date and Time Configuration

I do not think that one week notice is very helpful. Surely, you will forget that it is going to change the time one week later. Microsoft must have felt the same way because in Windows 7, they changed this to just Notify me when the clock changes. Thus, you would just be alerted that it has changed. That is fine with me. I do not think that most of us need a one week notification.

Of course, the time and date that daylight savings time occurs in the United States changed in 2009 and the application of DST around the world is very different. Fortunately, Microsoft keeps track of that for us and makes these changes based on our Windows time zone settings.

Windows 2008 - before and after DCPROMO

With a Windows Server, time and date can be very different if you are using it as an Active Directory Domain Controller (ADDC).

A typical Windows 2008 server will, by default, look very much like the Windows 7 machine in Figure 1. All the same tabs, including Internet Time, are present. You can see this in Figure 2, below.

Figure 2: Windows 2008 Server before DCPROMO

However, what happens if you make that same Windows Server a DC?

After running a DCPROMO, if you go back into the same Date and Time tool, you will find that the Internet Time tab is missing. Take a look at this in Figure 3, below.

Figure 3: Windows 2008 Server After DCPROMO

Why is this? Well, when a Windows Server becomes a domain controller the default of obtaining the date & time via NTP from time.windows.com, over the Internet, goes away. The server becomes the root time server for all computers in the domain using Windows SNTP (simple network time protocol). The w32tm service (and CLI command) is what provides this and controls this.

As you can see, on this server that is not a ADDC, the Windows Time service is set to manual and is not started.

Figure 4: Windows Time not started on default server

However, on the Windows Server in Figure 5, the Windows Time server IS started and set to Automatic because this is an Active Directory Domain Controller.

Figure 5: Windows Time running on Domain Controller

Configuring a domain controller to use NTP

By default on a domain controller, the internal BIOS clock on the server is the source for date and time in the entire infrastructure. However, how do you know it is right?

In my opinion your domain controller should use NTP to go out to the Internet and sync its date and time with the world's authoritative NTP servers. Unfortunately, you have to use the Windows registry editor and edit 6 registry entries to do this. In my opinion it should be easier to do this by having a GUI available but today you'll have to edit the registry.

Fortunately, there are a couple of good articles to walk you through this, step by step:

WindowsNetworking's Mitch Tulloch's article - Configuring the Windows Time Service

Microsoft TechNet's How to configure an authoritative time server in Windows Server

Conclusion

Proper time and date configuration on both servers and clients is critical in any Windows network. By default, both Windows clients and servers will connect to time.windows.com and sync date and time using NTP. Administrators must, of course, set the timezone correctly and verify that time is sync'ing correctly. Of course, for that to happen, PCs must have network communication, internet access, firewall ports open for NTP, and DNS. Finally, you need to know that if your server becomes a domain controller, it no longer gets its time & date from the Internet via NTP. Domain controllers become the root time source for the Windows network and the Windows Time server starts.

Configuring Time in Windows 7 and Win 200的更多相关文章

  1. windows系统中WIN键的快捷组合

    1.WIN+E    打开我的电脑(计算机) 2.WIN+D      返回桌面 当你在用聊天工具与朋友聊天时,旁边突然出现某位小伙伴,快速按下WIN+D返回到桌面就可以很好的保护你的聊天内容啦! 3 ...

  2. windows连接远程win服务器失败,win7win10都存在此问题,显示出现身份验证错误,要求的函数不受支持,可能由于CredSSP加密Oracle修正 (原)

    之前电脑windows+mstsc连接另一个windows服务器正常登陆,可在更新本地系统为win10以后,登陆就出现了问题,提示的错误是,出现身份验证错误.要求的函数不受支持,可能由于CredSSP ...

  3. Windows重要的win键

    win+↓ 当前窗口操作,多按几下就缩没了(同理,其他箭头也一样) win+e 打开此电脑 win+v 展开剪切板 win+k 访问蓝牙 win+a win10的通知 win+d (切到桌面,再用能切 ...

  4. ubuntu下安装wine1.8和阿里旺旺

    参考:http://www.linuxidc.com/Linux/2015-12/126722.htm和http://www.linuxidc.com/Linux/2016-05/131131.htm ...

  5. springboot备份mysql后发送邮件并删除备份文件,支持win和Linux

    首先加入springboot的邮箱依赖 <!--邮箱依赖--> <!-- https://mvnrepository.com/artifact/org.springframework ...

  6. [函数] Firemonkey Windows 重新计算 Font Baseline

    计算字型 Baseline 是一个不常用的函数,但如果想要显示不同大小文字下方对齐,就得用它来计算字型的 Baseline 才行,如果计算不准,显示的文字就会高高低低不整齐. 在 Firemonkey ...

  7. 论在Windows下远程连接Ubuntu

       Ubuntu下1:下载xrdp   sudo apt-get install xrdp 2: urs/share/applications 下找到  远程桌面 设置成这样 Windows下 1; ...

  8. Windows 10 周年更新正式版下载 + win10 快捷键

    Windows 10 周年更新正式版  360云资源总汇(施工中): https://yunpan.cn/c6Svi7Az52XBs (提取码:e5dd)今后提到周年更新版.1607版或RS1版,都是 ...

  9. windows操作技巧

    -------------------win7专有------------------- WIN+上下左右可以将当前窗口 最大化.左侧放置.右侧放置.最小化 WIN+Shift+左右是让窗口在多个屏幕 ...

随机推荐

  1. 我们不能把JavaScript作为一个全功能的编程语言。它缺乏以下重要特征

    客户端JavaScript不允许读或写文件.这已被保存的安全原因. JavaScript不能用于网络的应用,因为没有这样的支持. JavaScript没有任何多线程或多处理器的能力.

  2. wpf企业应用之SelectButton(用于列表页之类的选择)

    在企业级应用中,通常我们会遇到这样的需求,需要点击一个按钮选择列表中的一项或者多项,然后将结果显示到按钮中.这里我给自己的控件命名为SelectButton,具体效果见 wpf企业级开发中的几种常见业 ...

  3. 【POJ】1486:Sorting Slides【二分图关键边判定】

    Sorting Slides Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5390   Accepted: 2095 De ...

  4. 【BZOJ-3110】K大数查询 整体二分 + 线段树

    3110: [Zjoi2013]K大数查询 Time Limit: 20 Sec  Memory Limit: 512 MBSubmit: 6265  Solved: 2060[Submit][Sta ...

  5. java中write(byte[] b)与write(byte[] b,int off,int len)区别

    public static void copyInputStreamT0OutputStream(InputStream in, OutputStream out) { byte[] buffer = ...

  6. 基于直接最小二乘的椭圆拟合(Direct Least Squares Fitting of Ellipses)

    算法思想: 算法通过最小化约束条件4ac-b^2 = 1,最小化距离误差.利用最小二乘法进行求解,首先引入拉格朗日乘子算法获得等式组,然后求解等式组得到最优的拟合椭圆. 算法的优点: a.椭圆的特异性 ...

  7. elasticsearch实例讲解增删改查

    1.首先弄明白四个概念 elasticsearch 关系型数据库 index 数据库 type 表 document 行 field 字段 如果刚一开始理解比较困难,那你就在心中默念100遍,10遍也 ...

  8. oracle备份恢复学习

    备份和恢复是常遇到的操作,逻辑备份和物理备份.物理备份又分为冷备份和热备份. 一.逻辑备份,恢复 是指使用exp命令,简单易行,不影响正常的数据库操作.exp   用户名/密码   file=/hom ...

  9. VPS 虚拟私有主机 Virtual Private Server

    VPS技术介绍 利用最新虚拟化技术Xen在一台物理服务器上创建多个相互隔离的虚拟私有主机(“Virtual Private Server”简称 “VPS”).这些VPS以最大化的效率共享硬件.软件许可 ...

  10. andriod 浏览文件

    protected void browse() { Intent it = new Intent(Intent.ACTION_GET_CONTENT); //创建动作为 "选取" ...