Sunday, April 27, 2008

Microsoft Windows Clustering great links

Microsoft Windows Clustering

All you need ever to troubleshoot windows clusters

Books:

MCSE Training Kit: Microsoft Windows 2000 Advanced Server Clustering Services - No longer sold but it had some really good tips and examples.

Microsoft Exchange Server 2003 24seven - Excellent chapter on Exchange Server 2003 Clustering (and not just because I helped edit it).

Microsoft Exchange Server 2003 Distilled - Excellent chapter on Exchange Server 2003 Clustering.
Microsoft SQL Server 2000 High Availability - A whole book on SQL High Availability - Cool!.

Links:

Microsoft Public Newsgroup Windows Server Clustering

Building Better Protected Storage using Windows Storage Server 2003

Checklist Installing a Generic Service resource

Clustering Services in Windows Server 2003

Download details Guide to Creating and Configuring a Server Cluster Under Windows Server 2003

Download details Microsoft iSCSI Software Initiator Version 1.05

Download details Microsoft Product Support's Reporting Tools

Guide to Creating and Configuring a Server Cluster Under Windows Server 2003

Interpreting the Cluster Log

Microsoft Cluster Server General Questions

Microsoft Windows Clustering Storage Area Networks

Microsoft Windows Server Catalog Cluster Solution

Products Designed for Microsoft Windows – Windows Catalog and HCL

Quorums in Microsoft Windows Server 2003 Clusters

Server Cluster APIs

Server Cluster API Reference

Server Clusters Frequently Asked Questions for Windows 2000 and Windows Server 2003

Setting Up A Windows Server 2003 Cluster in VS2005 - Part I

Setting Up A Windows Server 2003 Cluster in VS2005 - Part II

Step-by-Step Guide to Installing Cluster Service

Technical Overview of Windows Server 2003 Clustering Services

Upgrade a Cluster from Windows 2000

Use a different disk for the quorum resource

Using Microsoft Virtual Server 2005 to Create and Configure a Two-Node Microsoft Windows Server 2003 Cluster

VMware clustering 1.0.pdf

vmware windows cluster

Welcome to the Clustering Technologies Community

Windows Server 2003 Clustering Services How-to Guide

Windows Server 2003 Server Cluster Architecture

Windows Server 2003 iSCSI Cluster Support FAQ

Windows Server 2003 Clustering Services

Windows Server Clusters Backup and Recovery - Best Practices

Windows Server Clusters Network Configuration - Best Practices

142863 - Valid IP Addressing for a Private Network
168567 - Clustering Information on IP Address Failover
168801 - How to Turn On Cluster Logging in Microsoft Cluster Server
168948 - Information about the cluster group
170762 - Cluster Shares Appear in Browse List Under Other Names
170771 - Cluster May Fail If IP Address Used from DHCP Server
171052 - Software FT Sets Are Not Supported in Microsoft Cluster Server
171277 - Information about Microsoft Cluster Server cluster resource failover time
171390 - Cluster Service May Not Start if Domain Controller Is Unavailable
171791 - Creating Dependencies in Microsoft Cluster Server
174070 - Registry Replication in Microsoft Cluster Server
174799 - How to Install Service Packs in a Cluster
174944 - How to Use the -debug Option for Cluster Service
175276 - Licensing Policy Implementation with MSCS
175278 - How to Add Additional Non-Hot Swap SCSI Hard Disks to a Cluster Node on a Shared SCSI Bus
175767 - Expected Behavior of Multiple Adapters on Same Network
176320 - Impact of Network Adapter Failure in a Cluster
176507 - Unattended Installation of MSCS Service
178273 - Error in Cluster Server Administration Guide
185051 - Restarting Cluster Service Causes Services.exe to Crash
190354 - Unattended Setup of MSCS with -JOIN Parameter Requires User Input
192773 - Cluster Server Memory Leak When MTS Explorer Is Running
193890 - Recommended WINS Configuration for Microsoft Cluster Server
195462 - WINS Registration and IP Address Behavior for Microsoft Cluster Server
197047 - Failover-Failback Policies on Microsoft Cluster Server
197382 - How To Keep Cluster Administrator from Reconnecting to a Cluster
198513 - Clustering Cannot Determine If a Shared Disk Is Working Properly
216064 - Cluster Server Has Clusdb Corruption After Power Outage
216964 - How to Administer a Server Cluster Remotely
217157 - Event ID 1057 or 1000 When the Cluster Service Attempts to Start
224376 - Error 2321 in Cluster Log Is Informational If It Occurs Only Once
224999 - How to Use the Cluster TMP file to Replace a Damaged Clusdb File
226796 - Using WINS and DHCP with the Windows 2000 Cluster Service
230356 - Changing the IP Address of Network Adapters in Cluster Server
232276 - Drive Letter Not Visible or Drive Letter Changed to Question Mark or Partition Properties or Label Not Accurate
234767 - Microsoft Cluster Server Logging Enhancements in Windows 2000
235529 - Kerberos support on Windows 2000-based server clusters
237853 - Dynamic Disk Configuration Unavailable for Server Cluster Disk Resources
238009 - Loss of Connection with Node Persists Until Node Is Restarted
238137 - Considerations When You Create Clustered File Shares on a Windows 2000 Server Cluster
241631 - Cluster Node with Heavy Disk Stress Does Not Shut Down Properly
241828 - Changing the IP Address of a Cluster Adapter May Result in Failover
242386 - Cluster Does Not Log Event on Resource Monitor Failure
242398 - Cluster Loses Track of Custom Resource DLL Registration After Resource Monitor Failure
242430 - Network Adapter Not Available During Cluster Configuration with a Crossover Cable
242600 - Network Failure Detection and Recovery in a Two-Node Server Cluster
243195 - Event ID 1034 for MSCS Shared Disk After Disk Replacement
243204 - Microsoft Distributed Transaction Coordinator (MSDTC) Recovery Techniques in Windows 2000 Cluster Server
244331 - MAC Address Changes for Virtual Server During a Failover with Clustering
245626 - INFO Use the -localquorum Switch to Install a Single-Node MSCS Cluster
245656 - INFO Where to Obtain Cluster Automation Server
245762 - Recovering from a Lost or Corrupted Quorum Log
248605 - Cluster IP Address Resource Fails with Many IP Address Resources Defined
248663 - Booting Node May Prevent Running Node from Accessing Quorum Disk
248998 - How to Properly Restore Cluster Information
249194 - MSCS-Cluster Does Not Form with Error Messages 170 and 5086
250355 - Antivirus Software May Cause Problems with Cluster Services
251284 - Cluster Server Cannot Start If the Quorum Disk Space Is Full
252974 - Error Message System Process - Lost Delayed-Write Data
254101 - Network Adapter Teaming and Server Clustering
256326 - Cluster Server Cannot Use Disk Beyond Device Number 25
256628 - How to Install Clustering on a SCSI IBM Server
257901 - How to Force the Cluster Service to Stop and Cause a Failover
257903 - Cluster Network Name May Not Come Online with Event ID 1052
257905 - Error Message Could Not Start the Cluster Service on the Local Computer
257906 - Unable to Stop the Cluster Server Service Using Cluster Administrator
257932 - Using Microsoft Cluster Server to Create a Virtual Server
257937 - HOW TO Format an Existing Partition on a Shared Cluster Hard Disk
257940 - Digital Cluster Server Loses Drive Letter Assignment
257982 - Cluster Service Causes CPU Use at 100 Percent When Hundreds of File Share Resources Are in Use
258078 - Cluster Service Startup Options
258518 - RPC Unavailable Error Appears When You Try to Access a Cluster Server
258750 - Recommended Private Heartbeat Configuration on a Cluster Server
259237 - Troubleshooting Event ID 9, 11, and 15 on Cluster Servers
259267 - Microsoft Cluster Service Installation Resources
260527 - Generating Notifications for an MSCS Resource Problem
262705 - Cluster Administrator Incorrectly Rejects Trusted Domain SIDs as Local SIDs
262962 - Cluster Service Does Not Start with Event ID 7000 Not Responding to Control Function
263590 - How to Extend the Disk Space of an Existing Shared Disk with Windows Clustering
264972 - Event ID 5072 and Error 5216 Appear When You Restart Cluster Server
265173 - The Datacenter Program and Windows 2000 Datacenter Server Product
265533 - Explanation of Chkdsk Status Codes in Cluster Log
266274 - How to Troubleshoot Cluster Service Startup Issues
266782 - Access Violation Error Message in Cluster.exe When You Move Groups
269196 - How to Move a Windows NT 4.0 Cluster Server from One Domain to Another
269229 - How to Manually Re-Create the Cluster Service Account
272129 - Cluster Service Does Not Start on Joining Node in Windows 2000 Cluster
272244 - Location of the Chkdsk Results for Windows Clustering Resources
278007 - Available Features in Windows Server 2003 Clusters
278365 - HOW TO Configure Disk Quotas for a Shared Disk in a Cluster
279802 - The Default Behavior When You Do a Move Group Operation on a Cluster with More Than Two Nodes
280297 - How to configure Volume Mount Points on a clustered server
280345 - Quorum Drive Configuration Information
280353 - How to Change the Quorum Disk Designation
280425 - Recovering from an Event ID 1034 on a Server Cluster
281314 - FP Server Extensions Are Not Supported on Microsoft Cluster Server
281662 - Windows 2000 and Windows Server 2003 cluster nodes as domain controllers
282006 - Cluster Configure Application Wizard Does Not Recognize Existing IP Addresses
282227 - How to Uninstall the Cluster Service on a Windows Server 2003 Cluster
283715 - The Features of the Local Quorum Resource on Windows Server 2003 Clusters
284134 - Server Clusters Do Not Support GPT Shared Disks
284838 - How to Create a Server Cluster File Share with Cluster.exe
285369 - How to Configure Client-Side Caching on a Server Cluster
286342 - Network failure detection and recovery in Windows Server 2003 Clusters
286422 - How to Back Up and Restore a Windows Server 2003 Cluster
288778 - Maximum number of supported nodes in a cluster
290624 - HOW TO Configure MSDTC in a Windows 2000 Cluster Environment
290637 - MS DTC Fails to Start and Logs Event ID 4383
293289 - Overview of the Microsoft Windows Cluster Services Clustering Model
293778 - Multiple-Path Software May Cause Disk Signature to Change
293799 - How to configure Windows clustering groups for hot spare support
294173 - Removing the HBA Cable on a Server Cluster
294926 - Considerations of Terminal Services on a Server Cluster
295082 - Windows File Protection Does Not Protect Cluster-Specific Files
295648 - How to Analyze the Cluster Configuration Log Files
296594 - Cluster Service Configuration Wizard Does Not Start Cluster Service
296799 - How to configure Windows clustering groups for hot spare support
297118 - Error Message Occurs When You Install SharePoint Portal Server on a Cluster Server
297219 - Cluster Server May Generate STOP 0x9F During Shutdown
297235 - XADM Creating a Resource in Cluster Administrator May Return an Object Not Found Error Message
298147 - PRB Invalid Class String Error Message Occurs While Connecting to a Cluster with the Cluster Administrator
299631 - Failover Behavior on Clusters of Three or More Nodes
301600 - How to configure Microsoft Distributed Transaction Coordinator on a Windows Server 2003 cluster
301647 - Cluster Service Improvements for Storage Area Networks (SANs)
302389 - Description of the Properties of the Cluster Network Name Resource in Windows Server 2003
302830 - The Option to Change the Cluster Network Roles, Priority, and Names Is Removed in Windows Server 2003
303431 - Explanation of Why Server Clusters Do Not Verify that Resources will Work Properly on All Nodes
304415 - Support for Multiple Clusters Attached to the Same SAN Device
304736 - How to Extend the Partition of a Cluster Shared Disk
305547 - Support for Booting from a Storage Area Network (SAN)
305793 - How to Replace a Disk That Is on a Windows 2000 or a Windows 2003 Server Cluster
305813 - How to Change the Cluster Service Account Password
306771 - Access Denied Error Message After You Configure a Windows Server 2003 Cluster
307469 - Restore registry check points stop working after you restore a server cluster
307532 - How to Troubleshoot the Cluster Service Account When It Modifies Computer Objects
307962 - Multicast Support Enabled for the Cluster Heartbeat
309186 - How the Cluster Service Takes Ownership of a Disk on the Shared Bus
309395 - The Microsoft support policy for server clusters, the Hardware Compatibility List, and the Windows Server Catalog
325423 - Support WebCast Windows Clustering An Overview of Microsoft Clustering Technologies
331801 - Cluster Setup May Not Work When You Add Nodes
555312 - How to Create a Physical Disk Resource with Cluster.exe
810220 - Support WebCast Windows Server 2003 Clustering New Features
812504 - Network-Attached Storage and Server Cluster Support
814607 - Microsoft support for server clusters with 3rd party system components
815267 - How to Enable User Mode Hang Detection on a Server Cluster
818681 - White Paper Technical Overview of Windows Server 2003 Clustering Services
818742 - Overview of the Microsoft Configuration Capture Utility (MPS_REPORTS)
818878 - Managing Disk Ownership in a Windows Server 2003 Cluster
823955 - Groups are moved to the active cluster node even though there is no fail back policy
826154 - Error 1721 Error Message Occurs When You Use Cluster Administrator (Cluadmin.exe)
828861 - Cluster Service Account Password Must Be Set to 15 or More Characters if the NoLMHash Policy Is Enabled
828262 - How to locate qualified cluster solutions for Windows
828338 - Clustool.exe Restore Operation on Windows 2000 SP3 or Later Cluster Does Not Complete Successfully
834231 - When a Windows Server 2003 cluster node is a domain controller, you may receive an error message when you add domain users to the cluster file share
834826 - You receive a The specified domain either does not exist or could not be contacted message when you try to use Cluster.exe wi
838623 - TechNet Support WebCast Renaming domains when Microsoft Exchange Server 2003 is in the Active Directory
840192 - Requirements for configuring clustering in Virtual Server 2005
843612 - Your application receives the STATUS_IO_DEVICE_ERROR error flag when it calls an IOCTL function in Windows Server 2003
867520 - You cannot start the Microsoft Distributed Transaction Coordinator (MSDTC) service on your Windows 2000 Server-based computer t
870656 - FIX The Notification Services components remain in the Enable Pending status on a Windows cluster
871111 - Events are logged in the system event log, and you cannot bring a network resource online by using Cluster Administrator in Win
872790 - You cannot connect to a cluster file share resource in Windows 2000 Server
872970 - The quorum log file becomes corrupted in your Windows 2000 Advanced Server-based cluster environment
873024 - You receive a System error 1315 error message when you try to change the Cluster Service account password by using the Cluste
875429 - You receive a System error 1355 has occurred (0x0000054b) error message when you use Cluster.exe to change the Cluster Servic
875524 - The Diskpart utility or the Cluster Administrator may take many seconds to process a task on a computer that is running Windows
883397 - How to set the Cluster service dependency in a pure iSCSI clustering environment in Windows 2000 and in Windows Server 2003
883398 - Cluster Services does not work correctly in a Windows Server 2003 SP1-based cluster that has the Internet Connection Firewall e
883654 - Cluster Resource Monitor leaks memory when it queries network name resource properties
884743 - The Parameters tab does not appear in the Properties dialog box when you view the properties of a custom resource type in a Win
885688 - Event ID 57 and event ID 55 may be logged when you use Windows Cluster on Windows Server 2003
885867 - Cluster services may stop when you use the cluster command to change the Cluster service account password on a Windows Server
886569 - How to add a registry value to a Windows Server 2003-based computer that you start from a SAN so that the startup disk, the pag
886652 - A network name resource does not come online in a Windows Server 2003 server cluster
886702 - You receive an error 258 in the cluster log file on a Windows Server 2003-based server cluster
886800 - A disk signature is unexpectedly changed on a Windows Server 2003 clustered physical disk resource
886807 - Shared disks are missing or are marked as Failed when you create a server cluster in Windows Server 2003
887017 - Requirements to consider when you use a backup solution with Windows server clusters
887415 - Users intermittently receive a The network path was not found error when they try to access a shared resource on a Windows 20
888025 - The quorum disk could not be located error message when you run the Windows Server 2003 Cluster Setup Wizard on a Windows Ser
888160 - Cluster is formed by using a local quorum resource after a cluster setup failure in Windows Server 2003
888200 - Event ID 1080 is repeatedly logged on your Windows 2000 Advanced Server-based computer that is part of a server cluster
888374 - Server cluster support for Windows Storage Server 2003 network attached storage devices
888607 - A Windows 2000-based cluster node may crash when you manage a server cluster by using certain Symantec storage products
890549 - You cannot format a shared cluster hard disk volume, and you receive The format did not complete successfully error message i
890634 - +You cannot bring a Microsoft Distributed Transaction Coordinator resource online after you create it on a Windows Server 2003-b
890761 - You receive an Error 0x8007042b error message when you add or join a node to a cluster if you use NTLM version 2 in Windows S
891597 - How to apply more restrictive security settings on a Windows Server 2003-based cluster server
891754 - Information about rolling upgrade support with NFS components on Windows 2000-based clusters and on Windows Server 2003-based c
892422 - Overview of event ID 1123 and event ID 1122 logging in Windows 2000-based and Windows Server 2003-based server clusters
894394 - A program that calls the ClusterResourceControl function may run slowly on a Windows Server 2003 cluster-based computer
895090 - Recommended hotfixes for Windows 2000 Service Pack 4-based server clusters
895092 - Recommended hotfixes for Windows Server 2003-based server clusters
898790 - Volume mount points on disks in a server cluster may intermittently become unavailable after you install Windows Server 2003 Se

899426 - FIX The MSDTC service does not start in a stand-alone cluster after you install Windows Server 2003 with SP1

900216 - The clustered MSDTC resource fails when you change the PDS Emulator operations master role to a different node in the cluster o

901042 - Event log entries appear to be missing information after you enable or disable maintenance mode for a cluster physical disk res

903223 - The cluster group of Microsoft Cluster Service may not fail over if the Shutvol.sys driver is installed in Windows Server 2003

Wednesday, April 16, 2008

DNS Tools and Settings

In this section

  • DNS Tools
  • DNS Registry Entries
  • DNS Group Policy Settings
  • DNS WMI Classes

DNS Tools

The following tools are associated with the Domain Name System (DNS).

Dnscmd.exe: Dnscmd

Category
This tool is included in the Microsoft Windows Server 2003 Support Tools.

Version compatibility
This tool runs on the Microsoft Windows 2000 Server and Windows Server 2003 operating systems.
Dnscmd is used to view the properties of DNS servers, zones, and resource records. In addition, Dnscmd is used to modify all aspects of the DNS Server service, including creating and deleting zones and resource records. Dnscmd can also be useful for developing scripts for configuring a DNS server.

Dnslint.exe: DNSLint

Category
This tool is a free download from Microsoft.

Version compatibility
This tool runs on Microsoft Windows XP, and the Windows 2000 Server and Windows Server 2003 operating systems.
DNSLint is a Microsoft Windows utility that can be used to help diagnose common DNS name resolution issues. It can be targeted to look for specific DNS record sets and ensure that they are consistent across multiple DNS servers. It can also be used to verify that DNS records used specifically for Active Directory directory service replication are correct.

Dnsmgmt.msc: DNS Console

Category
This tool is included in the Windows 2000 Server and Windows Server 2003 operating systems, and is installed when the DNS Server service is installed. This tool is also installed with either the Windows 2000 Server or Windows Server 2003 Administration Tools Pack (Adminpak.msi).

Version compatibility
This tool runs on the Windows 2000 Server and Windows Server 2003 operating systems. When installed from one of the administration tools packs, this tool can also run on Microsoft Windows 2000 Professional and Windows XP.
The DNS console is used to administer the DNS Server service. It can be used to modify all aspects of the DNS Server service, including creating and deleting zones and resource records, and forcing replication events between DNS server physical memory and DNS databases. The DNS console can also be used to perform diagnostics on the DNS infrastructure of a network.

Eventvwr.exe: Event Viewer

Category
This tool is included in all Windows server and client operating systems.

Version compatibility
This tool runs on Windows XP, and the Windows 2000 Server and Windows Server 2003 operating systems.
You can use Event Viewer to monitor events recorded in event logs. Typically, a computer stores the Application, Security, and System logs. It could also contain other logs, depending on the computer's role and the applications that are installed on it. For example, DNS servers write DNS-related events, such as any errors that occur while attempting to start the DNS Server service, to log files which can be read using Event Viewer.

Ipconfig.exe: Ipconfig

Category
This tool is included in all Windows server and client operating systems.

Version compatibility
This tool runs on all Windows server and client operating systems.
Ipconfig displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and DNS settings. Used without parameters, Ipconfig displays IPv6 addresses or the IPv4 address, subnet mask, and default gateway for all adapters.

Netmon.exe: Network Monitor

Category
This tool is installed along with Windows Server 2003 and the Windows Server 2003 Administration Tools Pack.

Version compatibility
This tool runs on all Windows operating systems.

Network Monitor captures data about the packets on a network and logs them for subsequent analysis. The monitored data can be filtered many different ways including protocol, ports, physical addresses, and logical addresses. Network Monitor can be useful in many situations, such as when you are troubleshooting an environment that has a firewall between a DNS server and a client, or between two DNS servers.

Network Monitor comes in two versions: the Network Monitor that is provided as part of the Windows Server 2003 operating system, and the Network Monitor that is part of Microsoft Systems Management Server (SMS). The version of Network Monitor that is included with the Windows Server 2003 operating system only captures data about network packets being sent to or from the server on which you run Network Monitor; it also captures data about network broadcasts that are received. The Network Monitor that is included with SMS enables you to monitor all network packets on a network segment.

Nslookup.exe: Nslookup

Category
This tool is included in all Microsoft Windows server and client operating systems.

Version compatibility
This tool runs on all Windows server and client operating systems.
Nslookup is used to query DNS servers and to obtain detailed responses. The information obtained using Nslookup can be used to diagnose and solve name resolution problems, verify that resource records are added or updated correctly in a zone, and debug other server-related problems.

DNS Registry Entries

The following registry entries are associated with DNS.

The information here is provided as a reference for use in troubleshooting or verifying that the required settings are applied. It is recommended that you do not directly edit the registry unless there is no other alternative. Modifications to the registry are not validated by the registry editor or by Windows before they are applied, and as a result, incorrect values can be stored. This can result in unrecoverable errors in the system. When possible, modify settings though the use of policy settings or through dedicated management tools, such as the DNS snap-in for the Microsoft Management Console (MMC), to accomplish tasks, rather than editing the registry directly. If you must edit the registry, use extreme caution.

Note

  • In Windows Server 2003, the location in the registry of the settings relating to DNS zones is different from the location used in Windows 2000 Server.
  • In Windows 2000 Server, the location is: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Zones
  • In Windows Server 2003, the location is:
    HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\DNS Server\Zones

DNS\Parameters

The following registry entries are located under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters.

EDNSCacheTimeout

Registry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

By default, the DNS server includes option (OPT) resource records indicating its User Datagram Protocol (UDP) maximum in responses to queries containing OPT resource records. The value of the registry key EDNSCacheTimeout determines how long the DNS server will keep information about the Extension Mechanisms for DNS (EDNS) versions supported by other DNS servers that have responded to a query with a OPT resource record. The value for the registry key is specified in seconds between 3,600 (1 hour) and 15,724,800 (182 days).

EnableDirectoryPartitions

Registry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

If you do not want the default DNS application directory partitions to be created automatically, you must disable the EnableDirectoryPartitions registry key. The values for this key are 0x0 (disable) and 0x1 (enable).
For more information about this registry entry, see the “Registry Reference” in the “Tools and Settings Collection .”

EnableEDNSProbes

Registry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

The registry entry EnableEDNSProbes enables or disables the EDNS0 response for the DNS Server service. To configure the DNS server to include an OPT resource record only in response to EDNS0 requests containing OPT resource records, set the registry entry to a value of 0x1 (DWORD). In Microsoft Windows Server 2003 this setting is enabled by default. Setting the value to 0x0 (DWORD) will disable the feature.

MaximumUdpPacket

SizeRegistry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

The registry entry MaximumUdpPacketSize specifies the maximum UDP packet size advertised by the DNS server. The default value is 1,280 bytes. The value must be between 512 and 16,384 in decimal format (200 and 4,000 in hexadecimal format). UDP packets must travel through devices other than UDP hosts, such as routers, and some of these devices might not support UDP packets larger than 512 bytes. The maximum UDP packet length that is supported by all network devices should be determined, along with the path’s Maximum Transmission Unit (MTU), before configuring this registry setting.

RoundRobin

Registry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

By default, DNS will perform round-robin rotation for all resource record types. The default setting for round-robin rotation is contained in the registry entry RoundRobin (REG_DWORD). By default, this entry’s value is 1, rotating all RR types except those listed in the DoNotRoundRobinTypes registry entry. If the value of RoundRobin is set to 0, then no resource record types will be round-robin rotated.

DoNotRoundRobinTypes

Registry path
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters

Version
Windows Server 2003

By default, DNS will perform round-robin rotation for all resource record types. You can specify that certain resource record types are not to be round-robin rotated in the registry. The registry entry DoNotRoundRobinTypes (REG_SZ) allows a string value to be entered containing a list of resource record types. By modifying this entry, you turn off round-robin rotation for specific resource record types. For example, to prevent round-robin rotation for A, PTR, SRV, and NS record types, you would enter the following value for the registry entry: a ptr srv ns.

DNSCache\Parameters

The following registry entries are located under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters.

AlternateComputerNames

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters

Version
Windows Server 2003

The AlternateComputerNames registry entry specifies a list of alternate Fully Qualified Domain Names (FQDNs) for the computer. When the DNS Client service registers the host address (A) and pointer (PTR) resource records for the computer, it will also register the FQDNs specified in this key. This key is used by the Netdom.exe utility and is not typically modified by administrators.

RegistrationRefreshInterval

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters

Version
Windows Server 2003

The RegistrationRefreshInterval registry entry specifies how often the DNS Client service will register the A DNS resource records for its host computer. The value for this registry key is specified in seconds.

UpdateTopLevelDomainZones

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters

Version
Windows Server 2003

Windows XP and Windows 2000 with Service Pack 4 (SP4) and Windows Server 2003-based computers never try to dynamically update the root,“ ”., zone.
The domain members and domain controllers in a domain with a single-label DNS name usually need to dynamically register DNS records in a single-label DNS zone that matches the DNS name of the domain. If an Active Directory forest root has a single-label DNS name, all domain controllers in the forest usually need to dynamically register DNS records in a single-label DNS zone that matches the DNS name of the forest root.
By default, Windows XP and Windows 2000 Service Pack 4 (SP4) and Windows Server 2003-based DNS clients do not attempt dynamic updates of any single-label DNS zone (.com, .net, .org, corp, for example). To enable such clients to attempt dynamic updates of a single-label DNS zones, set the UpdateTopLevelDomainZones (REG_DWORD) registry value to 0x1.
These configuration changes should be applied to all domain controllers and members of an Active Directory domain with single-label DNS names. If a domain with a single-level domain name is a forest root, these configuration changes should be applied to all of the domain controllers in the forest, unless the separate zones _msdcs.forest name, _sites.forest name, _tcp.forest name and _udp.forest name are delegated from the forest name zone. You must restart the computer for the UpdateTopLevelDomainZones registry edit to take effect.

Tcpip\Parameters

The following registry entries are located under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.

RegistrationEnabled (This registry entry is a global setting.)

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Version
Windows Server 2003

The RegistrationEnabled registry entry specifies that the DNS Client service should register all of the network connections of a computer in DNS. This is a global setting that is applied to all interfaces on a computer. If the need exists to apply this setting to an individual interface, see the registry entry for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters \interfaces\[interfaceGUID}.

SearchList

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Version
Windows Server 2003

The SearchList registry entry specifies the DNS suffix search list for the network connection used by the computer. For DNS clients, the DNS suffix search list extends or revises their DNS search capabilities. By adding additional suffixes to the list, the DNS client searches for short, unqualified computer names in more than one specified DNS domain. Then, if a DNS query fails, the DNS Client service can use this list to append other name suffix endings to the original name query and then repeat DNS queries to the DNS server for these alternate FQDNs. When the suffix search list is empty or unspecified, the primary DNS suffix of the computer is appended to short unqualified names, and a DNS query is used to resolve the resultant FQDN. If this query fails, the computer can try additional queries for alternate FQDNs by appending any connection-specific DNS suffix configured for network connections.

Interfaces\{interfaceGUID}

The following registry entries are located under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{interfaceGUID}.

NameServer

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{interfaceGUID}

Version
Windows Server 2003

The NameServer registry entry specifies the IP address of the DNS server that is used by the network connection of the computer.

RegistrationEnabled (This is an interface-specific registry setting.)

Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{interfaceGUID}

Version
Windows Server 2003

The RegistrationEnabled registry entry specifies that the DNS Client service should register the computer’s network connection in DNS. This entry is interface specific and can be set on any interfaces on a computer. The {interfaceGUID} portion of the registry path determines which interface the setting is applied to.
There is a global version of this setting that gets applied to all interfaces. Information about this setting can be found under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\RegistrationEnabled.
For more information about this registry entry, see the “Registry Reference” in the Tools and Settings Collection.

DNS Group Policy Settings

The following table lists and describes the Group Policy settings that are associated with the DNS Client service.

Group Policy Settings Associated With DNS Client Service

Primary DNS Suffix
Specifies the primary DNS suffix.

Dynamic Update
Specifies whether or not the DNS client should perform dynamic updates.

DNS Suffix Search List
Specifies the DNS server search list.

Primary DNS Suffix Devolution
Specifies whether DNS name devolution should be used in resolving names.

Register PTR Records
Specifies whether reverse lookup name registrations should be performed.

Registration Refresh Interval
Specifies the default refresh interval.

Replace Addresses In Conflicts
Specifies whether addresses in conflict should be replaced.

Register DNS records With Connection-specific DNS Suffix
Specifies whether DNS registration should be attempted for each network adapter.

TTL Set in the A and PTR Records
Specifies Time to Live (TTL) for dynamic registrations.

Update Security Level
Specifies the security level for updates.

Update Top Level Domain Zones
Specifies whether the computer sends dynamic updates to top level domain zones.

For more information about Group Policy settings, see the "Group Policy Settings Reference" in the following posts.

DNS WMI Classes

The following table lists and describes the WMI classes that are associated with the DNS Server service.

WMI Classes Associated With DNS Server Service

MicrosoftDNS_Server
Describes a DNS server. Every instance of this class might be associated with one instance of class MicrosoftDNS_Cache, one instance of class MicrosoftDNS_RootHints, and multiple instances of class MicrosoftDNS_Zone.

MicrosoftDNS_Domain
Represents a domain in a DNS hierarchy tree.

MicrosoftDNS_Zone
Describes a DNS zone. Every instance of the class MicrosoftDNS_Zone must be assigned to exactly one DNS Server. Zones might be associated with multiple instances of the classes MicrosoftDNS_Domain and MicrosoftDNS_ResourceRecord.

MicrosoftDNS_Cache
Describes a cache existing on a DNS server (do not confuse this with a cache file that contains root hints). This class simplifies visualizing the containment of DNS objects, rather than representing a real object. The class, MicrosoftDNS_Cache, is a container for the resource records cached by the DNS server.
Every instance of the class MicrosoftDNS_Cache must be assigned to exactly one DNS server. It might be associated with multiple instances of MicrosoftDNS_Domain and MicrosoftDNS_ResourceRecord.

MicrosoftDNS_RootHints
Describes the RootHints stored in a cache file on a DNS server. This class simplifies visualizing the containment of DNS objects, rather than representing a real object. Class MicrosoftDNS_RootHints is a container for the resource records stored by the DNS server in a cache file.
Every instance of the class MicrosoftDNS_RootHints must be assigned to exactly one DNS server. It might be associated with multiple instances of the MicrosoftDNS_ResourceRecord class.

MicrosoftDNS_Statistic
Represents a single DNS server statistic.

MicrosoftDNS_ServerDomainContainment
Every instance of the class MicrosoftDNS_ServerDomainContainment might contain multiple instances of the class MicrosoftDNS_Domain.

MicrosoftDNS_DomainResourceRecordContainment
Every instance of the class MicrosoftDNS_DomainResourceRecordComtainment might contain multiple instances of the MicrosoftDNS_ResourceRecord class.

MicrosoftDNS_ResourceRecord
Represents the general properties of a DNS RR.

MicrosoftDNS_AAAAType
Represents an IPv6 Address (AAAA), often pronounced quad-A, RR. Subclass of
icrosoftDNS_ResourceRecord.

MicrosoftDNS_AFSDBType
Represents an Andrew File System Database Server (AFSDB) RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_ATMAType
Represents an ATM Address-to-Name (ATMA) RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_AType
Represents an Address (A) RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_CNAMEType
Represents a Canonical Name (CNAME) RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_HINFOType
Represents a Host Information (HINFO) RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_ISDNType
Represents an ISDN RR. Subclass of MicrosoftDNS_ResourceRecord.

MicrosoftDNS_KEYType
Represents a KEY RR. Subclass of MicrosoftDNS_ResourceRecord.

Thursday, April 10, 2008

Windows Time and the W32TM service

Introduction

In the last few days this issue of time sync in Windows domains has come up a few times both at work and on the Minasi forum of which I am a member (http://web2.minasi.com/forum). Each time there has been confusion as to exactly how time sync occurs in a Windows domain.

Therefore, I decided that I would put this article together in order to try to provide a decent answer as to what is going on and how to troubleshoot any issues that arise.

The first thing about Time Sync in Windows is to realise that it is a little different between Windows 2000 machines and Windows XP/2003 machines. This is because in Windows 2000 the Simple Network Time Protocol (SNTP) was used and was configured with the NET TIME command. Now, with XP and 2003, Network Time Protocol (NTP) is used which give benefits such as more reliable time due to better correction methods. This is configured using the new W32TM commands which we will look at later on.

To start with, however, I will look at the principles that remain the same for both Windows 2000, 2003 and XP computers/domains.

Time Sync Principles
Why time sync:

The first question that we need to ask ourselves is why do we need time synchronisation? Well, in an Active Directory domain, it is very important for all clocks to be within 5 minutes of each other (by default) due to the implementation of the Kerberos protocol for authentication which relies on time stamped packets to prevent amongst other things, man-in-the-middle attacks. Another reason time sync is important for is because now Active Directory uses multi-master domain controllers (DCs) it is important that changes made at a later actual time on one DC don't get overwritten by similar changes on another DC whose time is set wrong thus making it look like the most recent change!


What is Network Time Protocol

Network Time Protocol (NTP) is the default time synchronization protocol used by the Windows Time Service (WTS) in Windows Server 2003 and Windows XP. It should be noted that this is different from Window 2000. As I will mention in the Windows 2000 specific section later on, Windows 2000 used the Simple Network Time Protocol (SNTP) to do time sync. However, for now we will talk about NTP as is contains all the functionality of SNTP and more!

NTP time synchronization takes place over a period of time and involves the transfer of NTP packets over a network. NTP packets contain time stamps that include a time sample from both the client and the server participating in time synchronization.


NTP relies on a reference clock to define the most accurate time to be used and synchronizes all clocks on a network to that reference clock. NTP uses Coordinated Universal Time (UTC) as the universal standard for current time. UTC is independent of time zones and enables NTP to be used anywhere in the world regardless of time zone settings.


What are we configuring within Windows

The Windows Time Service (WTS), that's what! As you can tell from the name, this is a service that runs on Windows machines and understands and implements network time sync using NTP. To enable the WTS to be flexible, it works by using plug in time providers. This allows it to support both hardware and Internet based time sources.


The NTP provider is the standard time provider included with Windows Server 2003. The NTP provider follows the standards specified by NTP version 3 for a client and server, and can interact with SNTP clients and servers for backward compatibility with Windows 2000 and other SNTP clients.


The NTP provider in the Windows Time service consists of the following two parts:

NtpServer output provider. This is a time server that responds to client time requests on the network.

NtpClient input provider. This is a time client that obtains time information from another source, either a hardware device or an NTP server, and can return time samples that are useful for synchronizing the local clock.

The Windows Time service is implemented in a dynamic link library called W32Time.dll. W32Time.dll is installed by default in the Systemroot\System32 folder during Windows Server 2003 setup and installation.

Time Protocol Interoperability

As is often the case with developments in the Windows environment, the new technology can still talk to the old. In this case, this means that the Windows Time service can operate in a mixed environment of computers running Windows 2000, Windows XP, and Windows Server 2003, because the SNTP protocol used in Windows 2000 is interoperable with the NTP protocol in Windows XP and Windows Server 2003.


Time Sync Hierarchy and Stratum:

The degree to which a computer's time is accurate is called a stratum. The most accurate time source on a network (such as a hardware clock) occupies the lowest stratum level, or stratum one. This accurate time source is called a reference clock. An NTP server that gets its time directly from a reference clock becomes part of a stratum that is one level higher than that of the reference clock. Resources that get time from the NTP server are two steps away from the reference clock, and therefore are part of a stratum that is two higher than the most accurate time source, and so on. As a computer's stratum number increases, the time on its system clock may become less accurate. Therefore, the stratum level of any computer is an indicator of how closely that computer is synchronized with the most accurate time source.


Windows 2000/3/XP ensures time is synchronised correctly within a domain by setting up a time sync hierarchy which follows the model above. The Primary Domain Controller emulator (PDCe) of the forest root is the Master Time Server (effectively stratum 1 for the network, although you could see this as stratum 2 as the PDCe also syncs with a more accurate clock). Other DCs then sync with the PDCe and clients and member servers sync with their authenticating DC. Therefore you have one point of "Reliable Time" in the enterprise, the root PDCe. So you might now be asking; what should I sync the root PDCe to?


Well, there are several choices; you don't have to sync the box at all! So long as all the machines within your network share the same time, it doesn't matter what time it is (unless you use time for other purposes). However, since you are likely to want the correct time on all your machines the other options are, either to sync the root PDCe with a hardware clock or to sync it with a public time server on the Internet.


Once you have setup the PDCe to sync with an external time source then what happens? Well, it tries to sync every 45 minutes until it achieves its first sync. Then after that, it syncs again every 45 minutes until it has done three successful syncs in a row. After that it syncs once every 8 hours.


You should also note that if the time is more than 3 minutes out then the w32time service will use a process of gradual adjustment to bring things into line rather than simply changing the clock immediately.

Reliable Time Source Configuration


If a domain controller is configured to be a reliable time source, in other words, it syncs with an external time source, the NetLogon service announces that domain controller as a reliable time source when it logs on to the network. When other domain controllers look for a time source to synchronize with, they choose a reliable source first if one is available. When a DC is intended to be a reliable time source you should ensure that the following registry key has a value of 5 if not then the default value 10 should be left in place.


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags


Windows 2000 Time Sync

I am now going to look at how you setup your Windows 2000 machine to sync over the Internet and what protocol Windows 2000 uses to do this. As mentioned briefly above, this is one of the differences between Windows 2003/XP and 2000. The protocol used for Windows 2000, is called Simple Network Time Protocol or SNTP. It is a "simple" version of NTP and lacks some of the more complex algorithms which provide more accurate and stable time for NTP clients. The way you set this up is to use the command line to enter the following:

NET TIME /SETSNTP:dnsnameofserver
For example, you could use the following:

NET TIME /SETSNTP:time.window.com
If you what to find out which server you setup a machine to sync to you can use the following command:

NET TIME /QUERYSNTP


Windows 2003 uses W32TM not NET TIME

As I mentioned above, Windows Server 2003 and Windows XP now use NTP instead of SNTP. Alongside that they now have a new way of configuring the WTS. The command that now does everything regarding WTS is: w32tm

So how do we use it? Well, the first thing to look at is the "/config" parameter. This does a few things. It allows you to use "/computer" to specify which computer you are setting up. The default setting is the local machine but it is nice that you can administrate time on remote computers too! It also allows you to tell the WTS that its config has changed and that it should apply the changes by using the "/update" switch. However, the two most important parameters are:


/syncfromflags:MANUALorDOMHIER

/manualpeerlist:PEERS


These parameters tell the computer whether or not to look for a time server within an Active Directory hierarchy or whether it should sync from and external source and then, if so, what that source is! What these parameters actually do is control a registry entry called "Type" in:


HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters


This key is either set to "NT5DS" if you're in an AD, or "NTP" if you're either not an AD member,
or if you're the root domain's PDCe. Actually, this key could also be set to "NoSync" to prevent any time sync taking place.


To tell a system's W32Time service to get its time from the Active Directory, type


w32tm /config /syncfromflags:domhier /update


This does two things. First, it sets that Type value to "NT5DS." Second, it notifies the w32time service that settings have changed.


If the system is not a member of and AD or is the root PDCe then change two things. First, the value of the "/syncfromflags" option changes from "domhier" to "manual" which changes the "Type" value from "NT5DS" to "NTP". Second, add the "/manualpeerlist:" option, to tell it where to sync from. Adding the "/manualpeerlist:" actually adds the entry specified to another key under the location above. The key is called "NTPServer".


For example, to tell your system that it should do its own time sync from
time.windows.com, type:

w32tm /configure /manualpeerlist:
time.windows.com,0x1 /syncfromflags:manual /update


Note: if using a DNS name for the time server then it is important to add the 0x1 to the end. If using and IP address this can be omitted.


After making any changes to the w32time service configuration you should restart the W32TIME service. This can be done from a command prompt as follows:


net stop w32time && net start w23time


After issuing either of these commands, you should tell your system to update its time with the following command:


w32tm /resync /rediscover


So that gets you the basics setup for a Windows Server 2003 or Windows XP machines.


To see a list of all the commands you can use with w32tm, type:
W32tm /?

Locating Time Servers:

By the way, if you are wondering where to find time servers to sync with I would recommend that you look into the NTP pool project which in its own works does the following:

"The pool.ntp.org project is a big virtual cluster of timeservers striving to provide reliable easy to use NTP service for millions of clients without putting a strain on the big popular timeservers."

For more info see http://www.pool.ntp.org

One tip that may be useful to someone during the search for a timeserver is this; if you think that a machine is running a time server then try the utility ntpquery.exe found at the following link:

http://www.bytefusion.com/products/fs/ntpquery/ntpquery.html

Point it at either a DNS name or IP address and if it returns box giving the details of NTP Reply, then you have found a time server!

Another way to verify whether a machine is a time server is to use the w32tm /monitor command. This can be used as follows:

W23tm /monitor /computers:uk.pool.ntp.org


w32tm /monitor /computers:uk.pool.ntp.org

uk.pool.ntp.org [82.71.9.63]:

ICMP: error IP_REQ_TIMED_OUT - no response in 1000ms

NTP: -4.9009063s offset from local clock

RefID: utserv.mcc.ac.uk [130.88.200.6]


You should get output similar to the above. In particular the NTP: line which shows that my clock is 4 seconds behind the online time server.

Best Practise:

Preventing Large Time Changes

As I have already stated, it is highly recommended to setup your root PDCe to sync with an external time source of some sort. However, having done this, you are then open to a possible problem caused by an error with the clock you sync to. If something were to go wrong and the time were to change dramatically on your external clock your root PDCe would by default follow this time change and apply it. This would then filter all through you domain which obviously would be a bad thing!

To prevent this you should configure the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries. From Microsoft sources on the Internet, it would appear that the recommended value is 900 seconds (15 mins). I would suggest that having a 15 minute time change occur on your network is likely unacceptable. I would therefore recommend setting this interval for 300 seconds so that the time change internally is never greater than 5 minutes. This should help to prevent problems if a large change was received which then prevented Kerberos authentication working as some machines would have a time difference of greater than 5 minutes before full time sync could occur.

If you are particularly worried about this type of problem then you could also set the values for your internal systems as well as for your root PDCe. For a little more info about these keys, including where to find them, look in the table below:

Obviously the above also means that if your clock were to get a long way out then correction wouldn't be automatic. In this case you should monitor the time of your network fairly regularly and also set the value of the MaxPollInterval registry entry to 10 or less, or that you set value of the SpecialPollInterval registry entry to 3600 (1 hour) or less to enable frequent time checks.

As with all these setting changes for more information have a browse of the Windows Time Service Technical Reference which can be found through the link below:

http://technet2.microsoft.com/WindowsServer/en/library/b43a025f-cce2-4c82-b3ea-3b95d482db3a1033.mspx?mfr=true

Troubleshooting Time Sync

The first thing to note about troubleshooting is that in Windows 2000, there is not much logged to the event log. However, this is changed with 2003 so your first step would be to check out the messages logged there.

In order to really see what is going on, you should then look to make use of w32tm and investigate the relevant registry keys mentioned above. Finally you can also enable debug logging for the w32time service. Whilst this can be useful, it does output a large amount of information of which lots may be unintelligible. It is for this reason that it is often useful only when working with MS PSS to solve your problem.

My Troubleshooting steps:

Here are the steps I take when troubleshooting Time Sync issues on a PDCe box.


1. First I will investigate the forest structure looking at how many domains and DCs exist. Then on one of the DCs I will install the Windows 2003 support tools and type

netdom query fsmo

2. This will locate the holders of the FSMO roles and allow me to find the server holder the PDCe role.

3. I will then verify with replmon that good replication is occurring within the forest.

4. I will next use the NTPQuery utility mentioned above to verify that the
time.windows.com time server can be accessed from the machine. This will verify that the relevant ports are open. Another way of doing this would be to use portqry as shown below which should return a Listening or Filtered output

portqry –n time.windows.com –e 123 –p UDP

5. Next I will open up regedit and locate the registry key below. Once there I will check that the desired time server is configured and that if a DNS name is used the ,0x1 suffix is used:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer


6. I will next attempt to ping the server that is referred to. Although this is not always possible due to settings at either end, it does provide a clear indication that the server is available. Another way to get this verification would be to use the portqry command above.

7. Open Registry Editor (regedit.exe) and configure the following registry entries so that it is set to NTP not NT5DS:

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type


8. Whilst in the registry ensure that the registry key below has a value of 5.

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags

9. Now stop and restart the Windows Time service using the following command:

net stop w32time && net start w32time

10. Next re-sync the w32time service using the following command:

w32tm /resync /rediscover

11. Next check in the system event log to see if errors are still logged. If the above has fixed the problem then you should now receive an event ID of 35 logged by the w32time service.

12. If you still have errors then reboot the server.

13. Then in the registry point the time server to the same time source as above but use the 0x8 flag instead of the 0x1 flag to force W32time to send normal client requests.

14. Restart the w32time service as shown above and check the event log. If errors continue carry on as follows.

15. Check the Default Domain Controllers group policy and the Default Domain group policy and any others that could affect the PDCe or other DCs. Check the following areas:

Computer configuration/Administrative Templates /System/Windows Time service/Time Providers

Ensure that all three settings listed are set to "not configured".

16. Now stop and restart the Windows Time service using the following commands:

net stop w32time && net start w32time

17. At this point check the system event logs and you should see event id 35

18. If you are still having problems then as a final attempt, you can un-register and re-register the w32time service. This will clear out all configurations and let you start again from scratch. The details of how to do this are in the next section titled "Other useful w32tm commands".


Other useful w32tm commands:


A couple of other w32tm commands that may well be useful in your troubleshooting are as follows:

W32tm /unregister

W32tm /register

W23tm /dumpreg

The first command will remove all w32time service registry keys and settings and un-register the w32time service. This effectively wipes all configuration from the machine.

The second command will register the service and set it up with default settings ready for your configuration.

The third command is useful for both documentation and reporting to PSS as it enables you to export the contents of the w32time registry key. To be honest though, I find it easier to use regedit to do this.

A final tip is that after any changes you should restart the w32time service

How to turn on debug logging:

In order to turn on debug logging you must create a location for the log. I would use "c:\w32tmlog". Next open up regedit and make the following changes:

Locate and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

On the
Edit menu, click New Value, and then add the following registry values:

Value Name:
FileLogSize
Data Type: DWORD
Value data: 10000000

This registry value specifies the size of the log file in bytes.

Value name:
FileLogName
Data Type: String
Value data: C:\w32tmlog\w32time.log

This registry value specifies the location of the log file. The path is not fixed. You can use a different path. Value name: FileLogEntries
Data Type: String
Value: 0-116

This registry value specifies the level of detail of the information in the debug log. If you must have more detailed logging information, contact a Microsoft Support Professional.

Note The Data Type value must be of type REG_SZ (String). You must type the value exactly as shown (that is, type 0-116). The highest possible value is 0-300 for most detailed logging. The meaning of this value is: Log all entries within the range of 0 and 116.

The information above has been taken from the following MS KB article

http://support.microsoft.com/kb/816043/

References:

Below are some links to pages I found useful when researching this article.

Windows Time Service Technical Reference
http://technet2.microsoft.com/WindowsServer/en/library/a0fcd250-e5f7-41b3-b0e8-240f8236e2101033.mspx?mfr=true

How to configure the Windows Time Service against a large time offset:
http://support.microsoft.com/kb/884776/

Registry entries for the W32Time Service:
http://support.microsoft.com/kb/q223184/

How to configure Debug logging:
http://support.microsoft.com/kb/816043/

How to configure and authoritative time server in Windows Server 2003:
http://support.microsoft.com/kb/816042
http://labmice.techtarget.com/windows2000/timesynch.htm
http://www.pool.ntp.org/
 
Site Meter