Created
July 7, 2015 13:27
-
-
Save mgreenegit/cd4a89d9e01738d1e64a to your computer and use it in GitHub Desktop.
Stashing a quick prototype of a counter to display when DSC will next evaluate a node. PDT has a much better timer output.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LastStatus = (Get-DscConfigurationStatus).StartDate | |
$Frequency = (Get-DscLocalConfigurationManager).ConfigurationModeFrequencyMins | |
while ( (Get-Date) -lt ($LastStatus.AddMinutes($Frequency)) ) | |
{ | |
Write-Host ((Get-Date) - ($LastStatus.AddMinutes($Frequency))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment