diff --git a/rsBasePrep.ps1 b/rsBasePrep.ps1 index b17f978..808fff9 100644 --- a/rsBasePrep.ps1 +++ b/rsBasePrep.ps1 @@ -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"