A module to manage time configuration in Windows

Nicolas Corrarello



15,111 latest version

2.4 quality score

Version information

  • 0.4.3 (latest)
  • 0.4.1
  • 0.3.0
  • 0.2.0
released Dec 8th 2016
This version is compatible with:
  • Puppet Enterprise >=2016.1.0 <= 2016.4.0
  • Puppet >= 4.5.0 < 5.0.0
  • Windows

Start using this module


ncorrare/windowstime — version 0.4.3 Dec 8th 2016


Table of Contents

  1. Description
  2. Setup - The basics of getting started with windowstime
  3. Development - Guide for contributing to the module


This module configures NTP sync on Windows Servers. It's extremely useful on standalone instances not connected to AD. It switches the W32time Service from triggered to running, so it's constantly verifying and syncing the clock. It can also configure the systems in the correct timezone.


What windowstime affects

  • Alters the HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer to the defined list (and flags) of NTP servers.
  • Configures the w32time service.
  • Does an initial resync.
  • If timezone is set, it will configure the system to the specified timezone.

Beginning with windowstime

You can just include the class to configure the server to sane defaults:

  include ::windowstime

Or configure your own NTP servers:

    class { 'windowstime':
      servers => { ''     => '0x01',
                   '' => '0x01',

Or configure your NTP servers and the timezone:

    class { 'windowstime':
      servers  => { ''     => '0x01',
                    '' => '0x01',
      timezone => 'Greenwich Standard Time',

Timezone values are validated to parameters accepted from the tzutil command. You can check the full list on data/common.yaml.

Please ensure that servers have the correct flag:

  • 0x01 SpecialInterval
  • 0x02 UseAsFallbackOnly
  • 0x04 SymmatricActive
  • 0x08 Client


Regular rules apply, send a PR and I promise to look at it as soon as I can.