Set PDC Emulator AnnounceFlag

Set PDC Emulator AnnounceFlag

With this script, you will be able to set the registry AnnounceFlag to “0x5” on each PDC emulator on your forest

The script performs these steps :

  • List all PDC emulator on all domains in the current forest
  • Read the current value of the “AnnounceFlag” registry entry
  • If it is not “0x5”, the registry is updated
  • If the registry is updated, the Windows Time service is restarted


Reference

Windows Time service Tools and settings
AnnounceFlags
Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
Version
Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, and Windows Server 2008 R2
This entry controls whether this computer is marked as a reliable time server. A computer is not marked as reliable unless it is also marked as a time server.
0x00 Not a time server

0x01 Always time server

0x02 Automatic time server

0x04 Always reliable time server

0x08 Automatic reliable time server

A value of 5 means 0×04 + 0×01. In common words “Always time server” + Always reliable time server”.

One thought on “Set PDC Emulator AnnounceFlag

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: