NTP reporting function


I hope this function will help you in your daily work. On large infras it kinda hard to get a correct view of all your NTP configuration and sometimes it’s usefull to have a full view of servers unsynch. This function will gather informations of a server NTP configuration :

  • NTP Source – Only the first specified – (if not forced)
  • NTP Service status
  • Delta with NTP Source

All those informations are extracted from the w32tm queries, except W32time service status informations which are gathered through a CIM session, this script use a WinRM connection between the server where the function is executed and all checked servers, and at least this script was only tested on 2008 R2 env, i can’t guarantee it’ll work on lower Windows releases.

See ya !