Configure time (w32tm) with DSC

Welcome Forums DSC (Desired State Configuration) Configure time (w32tm) with DSC

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 weeks, 5 days ago.

  • Author
    Posts
  • #179451

    Participant
    Topics: 9
    Replies: 59
    Points: 417
    Helping Hand
    Rank: Contributor

    Does anybody know a DSC module to manage the time on a server?

    I have found this:

    https://github.com/microsoft/W32Time

    However, this module is only setting a timestamp value on network adapters.

    I am searching for a DSC resource doing the same as w32tm /config.

    Or maybe do you have another DSC solution for standalone computers?

  • #179568

    Senior Moderator
    Topics: 8
    Replies: 1079
    Points: 3,621
    Helping Hand
    Rank: Community Hero

    IMHO, Configuration management is all about the expected state of a system. Even though DSC has the capability of auto correction, using it for time sync wont be a feasible solution.

    you could think of a scheduled task as well.

    • #179637

      Participant
      Topics: 9
      Replies: 59
      Points: 417
      Helping Hand
      Rank: Contributor

      Hi Prasoon!

      Sorry if I was too vague or not explicit enough...
      I was speaking about general time configuration and not current time correction.

      Currently, I am doing this by GPO for domain members and the w32tm command-line for standalone servers.

      However, now that I am transitioning to DSC, I am searching for a "DSC way" to configure the time service.
      For the moment I am using registry keys as a workaround.
      But a DSC module would be welcome. Or maybe it already exists and I couldn't find it...

You must be logged in to reply to this topic.