Skip to content

Instantly share code, notes, and snippets.

@mgreenegit
Created July 7, 2015 13:27
Show Gist options
  • Save mgreenegit/cd4a89d9e01738d1e64a to your computer and use it in GitHub Desktop.
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.
$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