Skip to content

Commit

Permalink
Change EventID to start consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Horacio Fernandez committed Oct 2, 2014
1 parent 62a9c01 commit 9132070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsBasePrep.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ Function Install-DSC {
if($role -ne "Pull") {
$i = 0
do {
if ( $((Get-WinEvent Microsoft-Windows-DSC/Operational | Select -First 1).id) -eq "4194" ) {
Start-ScheduledTask -TaskName "Consistency"
if ( $((Get-WinEvent Microsoft-Windows-DSC/Operational | Select -First 1).id) -eq "4104" ) {
Get-ScheduledTask -TaskName "Consistency" | Start-ScheduledTask
}
if($i -gt 5) {
Write-EventLog -LogName DevOps -Source BasePrep -EntryType Information -EventId 1000 -Message "Waiting for Client to install DSC configuration"
Expand Down

0 comments on commit 9132070

Please sign in to comment.