但设置setup.exe属性到Windows XP兼容模式就可以装了。
Thursday, August 9, 2012
Wednesday, July 25, 2012
How to Setup a Windows 2008 R2 SNTP/NTP Server
source: http://bchavez.bitarmory.com/archive/2009/12/21/how-to-setup-a-windows-2008-r2-sntp-ntp-server.aspx
Gee, setting up an SNTP/NTP server in Windows is not intuitive.
The good news is: When configured correctly, you can use the Windows Time (W32Time) service as an SNTP/NTP server for both windows and non-windows SNTP/NTP clients.
Here's how to do it:
Gee, setting up an SNTP/NTP server in Windows is not intuitive.
The good news is: When configured correctly, you can use the Windows Time (W32Time) service as an SNTP/NTP server for both windows and non-windows SNTP/NTP clients.
Here's how to do it:
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
- In the right pane, right-click AnnounceFlags, and then click Modify.
- In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK.
- Enable NTPServer.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\W32Time\TimeProviders\NtpServer\ - In the right pane, right-click Enabled, and then click Modify.
- In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.
- Locate and then click the following registry subkey:
- Exit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
net stop w32time && net start w32time
Tips
- Make sure W32Time is set to Automatic startup mode.
- Make sure UDP 123 is allowed through your firewall.
- Use this InternetTime program to help you debug connectivity to your SNTP/NTP server.
Configuring Windows 2008 R2 as an NTP Server
source: http://fir3net.com/Windows-2008/configuring-windows-2008-r2-as-an-ntp-server.html
In order to configure an Windows 2008 R2 Server you will need to make a number of changes to the registry. This tutorial will show you both the settings for configuring the NTP Server in addition to the client settings.
In order to configure an Windows 2008 R2 Server you will need to make a number of changes to the registry. This tutorial will show you both the settings for configuring the NTP Server in addition to the client settings.
NOTES
It is worth noting that this example is based on the below,- A Windows 2008 R2 Server acting as the NTP Server
- A Windows 2008 R2 Server acting as the NTP client for which it will source its time from the above server.
- This configuration is not based upon using a Windows Domain.
NTP SERVER
SERVER SETTINGS
1. Enable the NTP Server[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]"
"Enabled"=dword:00000001
CLIENT SETTINGS
1. Enable NTP Client and set polling interval.[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]"2. Configure the NTP Time Source, period and frequency
"Enabled"=dword:00000001
"SpecialPollInterval"="300"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"NtpServer"="[NTP SERVER IP],0x1"
"Type"="NTP"
"Period"="freq"
NTP CLIENT
CLIENT SETTINGS
1. Enable NTP Client and set polling interval.[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]"2. Configure the NTP Time Source, period and frequency
"Enabled"=dword:00000001
"SpecialPollInterval"="300"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"NtpServer"="[NTP SERVER IP],0x1"
"Type"="NTP"
"Period"="freq"
ADDITIONAL
STARTUP
By default the w32tm service will not automatically start if your Windows machine is not on a domain. To ensure that the service starts automatically run the following command :sc triggerinfo w32time start/networkon stop/networkoff
TROUBLESHOOTING
To confirm that your clients are correctly peering with your time source run the following command.w32tm /query /peers
"NtpServer"="[NTP SERVER IP],0x1"
Configuring Time in Windows 7 and Win 2008 R2
Source: http://www.windowsnetworking.com/articles_tutorials/Configuring-Time-Windows-7-Win-2008-R2.html
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 to Remind 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.
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
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:
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 to Remind 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.Synchronising time in an Active Directory Forest
source: http://philipflint.com/2009/11/03/synchronising-time-in-an-active-directory-forest/
Windows Servers use time synchronisation to ensure
against replay attacks and thus increase the security of Kerberos
authentication within an Active Directory environment. Kerberos tickets
are presented to domain controllers by clients and the authenticating
domain controller checks that the time stamp on the ticket is within a
certain amount of time of the clock on the domain controller, generally 5
minutes although this can be set by group policy. To ensure that the
clocks between clients and domain controllers are reasonably in synch at
all times, Windows operating systems use the windows time service
(W32Time) to synchronise clocks within the forest. They do this by
following a synchronisation hierarchy which can be described as below.
This can raise two issues.
To create the GPO, open Group Policy Management Console and create a new GOP linked to the Domain Controllers OU (I have called mine PDC Time Sync). Access the Scope tab of the GPO.

Note that WMI Filtering is net to . You can only apply a WMI filter if one exists and so, next, we right click the WMI Filters node above and select “New…“. We give the WMI filter a name and description as below.

We then click Add to add a query to the filter. The WMI query will be as below:
Select * from Win32_ComputerSystem where DomainRole = 5

We then click on OK and “Save“.

The WMI script selects computers whose DomainRole method of the Win32_ComputerSystem class (i.e. DomainRole value) is set to 5. The allowed values for this method are as below.
Active Directory follows the multi-master method of replication whereby each domain controller “owns” a copy of the Active Directory database and can update values in that database and replicate changes to all other domain controllers. This is as opposed to the NT4 methodology where a primary domain controller existed and all other domain controllers were backup domain controllers. However, Active Directory maintains the PDC Emulator role for those times when a PDC is still required for down level clients, password replication and time synchronisation. The server hosting this role has DomainRole 5 and all other domain controllers hold domain role 4, even though they are not backup domain controllers in the traditional meaning of that term.
As the WMI filter now exists it can be assigned to the GPO as a filter. Access the scope tab of the GPO created earlier and set the WMI filter to the one just created.

The GPO can now be edited and values set to control the W32Time service on the server holding the PDC Emulator role. If the role is moved between servers then the GPO ceases to apply and the W32Time settings are reverted to their original values forcing the server to sync to the new server holding the PDC Emulator role. The appropriate policy to set is the “Configure Windows NTP Client” policy found at “Computer Configuration | Policies | Administrative Templates | System | Windows Time Service | Time Providers” in Windows Server 2008 R2. The default values for these settings are shown below.

The meaning of each value is as follows:
A list of NTP Time servers can be obtained from http://support.microsoft.com/?id=262680. The values I tend to set for the GPO are as below.

I use the flag 0×1 on the NtpServer setting to make the time service take note of the SpecialPollInterval setting (which is a value in seconds) which sets how often the server should poll for a new time. In this way we can, if desired, poll for a time update more or less often. The NTP type setting tells the service to go direct for its time updates to the NtpServer specified.
One the GPO is configured you can wait for it to be applied to the PDC Emulator or force its application using GPUpdate. To check that the policy is working simply note the difference between the server clock and your wristwatch or other clock and, around an hour later, check again and you should see that the difference between the two time sources has changed as the server is drawing its time from an accurate time source.
The final thing to do is to change the GPO status to disable user configuration settings within the GPO as this will lead to a slightly faster GPO processing time.

I hope this post will help remove some of the mystery surrounding how to configure time synchronisation settings within an Active Directory domain.
- All client desktop computers nominate the authenticating domain controller as their in-bound time partner.
- All member servers also nominate the authenticating domain controller as their in-bound time partner.
- All domain controllers in a domain nominate the primary domain controller (PDC) operations master as their in-bound time partner.
- All PDC operations masters follow the hierarchy of domains in the selection of their in-bound time partner and synchronise with the server holding the PDC operations master role in the forest root domain.
- In this hierarchy, the PDC operations master at the root of the forest becomes authoritative for the organization and should be set to synchronise with an external atomic time source or will use its own CMOS clock to set its internal time.
This can raise two issues.
- One of the servers, over time, could drift in terms of its clock and so the original PDC emulator may not be in sync with the rest of the forest and therefore reject authentication attempts.
- If an application is Active Directory integrated and using the AD servers for its time source then that application or service may not be accurately recording its time in the application or any logs. This can be an issue, for example, for systems “clocking in” staff where staff are fined for late arrival or, perhaps, when accurate recording of access times for network assets is important for security reasons. If the time recorded is out by a few minutes then this may be an issue.
- Set all domain controllers to synchronise to the same external atomic clock. Whilst this should certainly keep all clocks within a reasonable skew time the same issue can occur as described above if one server should, for some reason, not have external access. It is likely to eventually drift from the other server clocks and create issues.
- Set two domain controllers to synchronise externally and only move the PDC emulator role between those two servers. This is a standard answer to this conundrum and can work well. It has the advantage that administrators are likely to know where the FSMO roles are for the domain and reduces the amount of setup time. However, there is still a small risk of drift if one server loses its external access for any reason. There is also the possibility that the PDC Emulator role will be moved to a server other than those nominated.
- Use a GPO to set domain controllers to follow the hierarchy above and be compliant with RFC 1305 unless they are the PDC Emulator in which case they go to an external source. While all domain controllers still need to be provided access to the internet over UDP port 123, should a mistake be made then all servers will at least have the same clock time and so, using this method, the likelihood of failed authentication attempts are very much minimised.
To create the GPO, open Group Policy Management Console and create a new GOP linked to the Domain Controllers OU (I have called mine PDC Time Sync). Access the Scope tab of the GPO.
Note that WMI Filtering is net to
We then click Add to add a query to the filter. The WMI query will be as below:
Select * from Win32_ComputerSystem where DomainRole = 5
We then click on OK and “Save“.
The WMI script selects computers whose DomainRole method of the Win32_ComputerSystem class (i.e. DomainRole value) is set to 5. The allowed values for this method are as below.
| Value | Meaning |
| 0 | Standalone Workstation |
| 1 | Member Workstation |
| 2 | Standalone Server |
| 3 | Member Server |
| 4 | Backup Domain Controller |
| 5 | Primary Domain Controller |
Active Directory follows the multi-master method of replication whereby each domain controller “owns” a copy of the Active Directory database and can update values in that database and replicate changes to all other domain controllers. This is as opposed to the NT4 methodology where a primary domain controller existed and all other domain controllers were backup domain controllers. However, Active Directory maintains the PDC Emulator role for those times when a PDC is still required for down level clients, password replication and time synchronisation. The server hosting this role has DomainRole 5 and all other domain controllers hold domain role 4, even though they are not backup domain controllers in the traditional meaning of that term.
As the WMI filter now exists it can be assigned to the GPO as a filter. Access the scope tab of the GPO created earlier and set the WMI filter to the one just created.
The GPO can now be edited and values set to control the W32Time service on the server holding the PDC Emulator role. If the role is moved between servers then the GPO ceases to apply and the W32Time settings are reverted to their original values forcing the server to sync to the new server holding the PDC Emulator role. The appropriate policy to set is the “Configure Windows NTP Client” policy found at “Computer Configuration | Policies | Administrative Templates | System | Windows Time Service | Time Providers” in Windows Server 2008 R2. The default values for these settings are shown below.
The meaning of each value is as follows:
| Policy Setting | Effect of Setting |
| NtpServer |
Establishes
a space-delimited list of peers from which a computer obtains time
stamps, consisting of one or more DNS names or IP addresses per line.
Computers connected to a domain must synchronize with a more reliable
time source, such as the official U.S. time clock. This setting is used
only when Type is set to NTP or AllSync. 0×01 SpecialInterval 0×02 UseAsFallbackOnly 0×04 SymmetricActive 0×08 NTP request in Client mode |
| Type |
Indicates which peers to accept synchronization from: NoSync. The time service does not synchronize with other sources. NTP. The time service synchronizes from the servers specified in the NtpServer registry entry. NT5DS. The time service synchronizes from the domain hierarchy. AllSync. The time service uses all the available synchronization mechanisms. |
| CrossSiteSyncFlags |
Determines whether the service chooses synchronization partners outside the domain of the computer. None 0 PdcOnly 1 All 2 This value is ignored if the NT5DS value is not set. |
| ResolvePeerBackoffMinutes |
Specifies the initial interval to wait, in minutes, before attempting to locate a peer to synchronize with. If the Windows Time Service cannot successfully synchronize with a time source, it will keep retrying, using the settings specified in ResolvePeerBackOffMinutes and ResolvePeerBackoffMaxTimes. |
| ResolvePeerBackoffMaxTimes |
Specifies the maximum number of times to double the wait interval when repeated attempts fail to locate a peer to synchronize with. A value of zero means that the wait interval is always the initial interval in ResolvePeerBackoffMinutes. |
| SpecialPollInterval |
Specifies the special poll interval in seconds for peers that have been configured manually. When a special poll is enabled, Windows Time Service will use this poll interval instead of a dynamic one that is determined by synchronization algorithms built into Windows Time Service. |
A list of NTP Time servers can be obtained from http://support.microsoft.com/?id=262680. The values I tend to set for the GPO are as below.
I use the flag 0×1 on the NtpServer setting to make the time service take note of the SpecialPollInterval setting (which is a value in seconds) which sets how often the server should poll for a new time. In this way we can, if desired, poll for a time update more or less often. The NTP type setting tells the service to go direct for its time updates to the NtpServer specified.
One the GPO is configured you can wait for it to be applied to the PDC Emulator or force its application using GPUpdate. To check that the policy is working simply note the difference between the server clock and your wristwatch or other clock and, around an hour later, check again and you should see that the difference between the two time sources has changed as the server is drawing its time from an accurate time source.
The final thing to do is to change the GPO status to disable user configuration settings within the GPO as this will lead to a slightly faster GPO processing time.
I hope this post will help remove some of the mystery surrounding how to configure time synchronisation settings within an Active Directory domain.
AD时间同步原理分析
对于加入域环境的客户端是与在父域中的权威服务器进行时间同步的。默认的同步时间的方法就是使用域层次,客户端会使用其所连接域中的域控来同步时间,而域控会反过来从整个林中的权威时间源来同步时间。如果在森林的根域中没有指定某个域控为权威时间源,那么拥有PDC角色域控会担当这个权威时间服务器。这台PDC会使用自己内部的时钟来为整个林的域控提供时间。
1. 如何保证所有域控制器和层次结构的PDC同步时间?如何保证所有成员服务器(客户端)与验证服务器同步时间。
由于PDC是林中默认的时间源,因此我们必须确保这个DC是永远在线的。如果我们发现PDC负载过高的话,那么就应该使用林中另外一台域控做为权威的时间源。
在森林根中的权威时间源获取时间的方式有两种。第一种就是从内网中所安装的硬件时钟设备上去获取时间。第二种就是从外部的时间服务器去获取时间。需要注意的是,如果我们没有配置权威时间服务器是从内部获取时间还是从外部获取时间,那么PDC就会使用其自己的内部时钟,也就是整个森林可靠的时间源了。
在与外部时间源进行同步时,我们是使用NTP协议来进行同步的,但NTP 协议使用的是UDP 123这个端口,因此我们一定要确保这个端口的入站和出站流量,以确保windows时间服务的正常工作。
也就是说,我们首先要保证默认情况下这个PDC这个时间源要是正确的,那么客户端与服务端就会自动进行同步了。否则就无法靠域的层级结构来同步整个域的时间了。
2. 所有与服务器、PDC服务器时间各不相同。该如何检查?
如果想使用默认的PDC来作为权威的时间源,建议是这样的
1) 首先确保PDC时间源才准确性,通常建议PDC使用外部的权威时间源(这样可以减少时间偏差和我们管理工作量)。
我们先通过下面的命令来检查,PDC现在的所使用时间源的状态:
w32tm /query /configuration
2) 如果我们想要指定外部权威时间服务器作为源,我们可以使用,下面这个命令:
w32tm /config [/computer:目标计算机] [/update] [/manualpeerlist:peers] [/syncfromflags:flag] [/reliable: (yes|No)]
例如:
w32tm /config /update /manualperrlist:time.windows.com,time.nist.gov,time-nw.nist.lov /syncfromflags:manual /reliable:Yes
使用这个命令我们就把PDC设置成了使用time.windows.com, time.nist.gov, time-nw.nist.lov这三个作为时间源,并且是森林中的权威时间服务器。我们可以通过上面的方法,来对我们觉得有必要的所有服务进行配置。
3) 如果客户端中的windows时间服务有问题的话,我们可以通过下面的方法来重置这个服务(恢复到默认状态)。
1、打开命令行
2、键入net stop w32time来停止这服务
3、键入w32tm /unregister 来删除现在的w32时间服务配置
4、键入w32tm /register 来导入默认的时间配置
5、键入 net start w32time 来开启这个服务。
4) 如果上面所述的方法还是不能解决我们的问题,我可以使用下面的方法来启用客户端上的windows时间服务日志文件来进行排错。
1.启动注册表编辑器。
2.找到并单击下面的注册表项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
3.在 编辑 菜单上单击 新值,然后添加以下注册表值:
· 值名称: FileLogSize
数据类型: DWORD
值数据: 10000000
· 值名称: FileLogName
数据类型: 字符串
值数据: C:\Windows\Temp\w32time.log
· 值名称: FileLogEntries
数据类型: 字符串
值: 300
4. 在有问题的客户端上运行这个命令w32tm /config /update
5. 收集这个日志文件,与PDC 和 任意两台有问题DC的时间服务配置信息(w32tm /query /configuration)
还有一些相关的问题,请参考如下问答:
1、域控制器和PDC之间同步时间这个是理论上。但是它们之间同步是否有一个确定的标准或机制?如果没有他们之间时间同步我是否可以通过一些日志或文件证明他们的同步。
首先,Windows时间服务是设计用来同步网络上计算机的时钟的。网络时钟同步的过程,也叫做时间收敛,这个过程发生于当每个计算机通过网络访问来自一个更可靠时间服务器时。时间收敛这个过程,涉及一个权威服务器把当前的时间以NTP包的形式发送给每个客户端计算机。而在这个包中所提供的信息表示了是否需要调整客户端计算机当前的时钟时间,这样就可以与更准确的服务器进行同步了。
作为时间收敛过程的一部分,域成员会试图与其在相同域内的域控进行同步时间。如果该计算机就是域控,那么它会试图与更权威的域控进行同步。
关于我们是否可以验证他们之间是否同步的问题,其实也就是监测的问题:要监测某个特定域中或计算机上的时间服务时,我们可以使用 /monitor 参数。该命令的基本语法如下:
w32tm /monitor [/domain: 域名] [/computers: 计算机1,计算机2,计算机3,…] [/threads: N]
这里,域名是指要监测的域的DNS名,和由DNS名或IP地址指定的计算机名。如果我们没有指定某个域或计算机,那么就会使用目前我们所登录的这个域。我们要确保计算机名之间用逗号隔开,并且没有空格。 /thread参数指定了同时分析的计算机数量。默认的值是3;而允许的范围值在1至50之间。
2、成员服务器和客户端与它们验证服务器间同步。每台DC 的时间不一样,经过检查是它们是通过各自的硬件时钟同步的。针对这类型问题是如何引起的?怎样进一步去确认?
针对这个问题,就像我们之前说的那样,默认情况下DC是会去找PDC去同步时间的,至于为什么会变成通过各自的硬件时钟去同步,这有很多种多可能的原因,如第三方程序的干预等等。但如果Windows time service工作是正常的话,那么我们也就没必要去找其中的原因了,只有当与我们的预期不符时,我们需要知道它到底在干什么的时候,我们可以通过启用在我上一次回复中的Debug log来看时间服务到底在干什么。
3、关于无法运行命令w32tm /query,及其w32tm /register 的问题
如果无法运行这个命令是因为这个命令是windows vista 和 windows server 2008时引入的。那么我们可以换一种办法来查看这个状态,我们可以查看这个注册表项:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\
· Nosync表示客户端没有同步时间(就是所谓的硬件时钟)
· NTP表示客户端从外部时间源同步时间,并且NTPServer字段定义了这个时间源
· NT5DS表示客户端配置了使用域架构作为自己的时间同步
· AllSync表示客户端会从任何可靠的时间源处同步时间,包括域结构和外部时间源的。
就该注册表项而言,在DC上默认值是NT5DS,在独立的客户端或服务器上是NTP。
w32tm /register 这个命令不需要指定某个时间源,因为这个命令的用意是,把时间服务注册一下并向注册表添加默认的值。而这个默认值会牵涉到许多的注册表项,因此可以通过下面的这篇文档来进一步了解。
source: http://kms.lenovots.com/kb/article.php?id=7146
Subscribe to:
Posts (Atom)