DSC scheduled tasks (Consistency, DSCRestartBootTask) missing

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of vamsee vamsee 1 month ago.

  • Author
    Posts
  • #56441
    Profile photo of vamsee
    vamsee
    Participant

    My WMF version is 5.0
    I understand when DSC is configured (i.e. winrm started, LCM local configuration applied using Set-DSCLocalConfigurationManager), there will be 2 scheduled tasks created namely Consistency, DSCRestartBootTask).
    I checked for the above tasks as shown below
    Control Panel–>Schedule Tasks (opens up the Task Scheduler window)
    In the Task Scheduler window's tree look for the following hirearchy
    Task Scheduler (local)–>TAsk Scheduler Library–>Microsoft–>Windows–>Desired State Configuration
    The above node should show the 2 tasks (Consistency, DSCRestartBootTak).
    But both seem to missing. Infact there is no node called "Desired State Configuration" at all.

    However what is surprising is, even though the Consistency task is missing in task scheduler, DSC seems to run the Consistency tasks periodically (every 15 mins) as configured in the localconfiguration manager. I am able to confirm this because of the results I got from Get-DscConfigurationStatus -All command which shows Consistency tasks have been successful for a long time.

    Question1: So where do i see the consistency task in task scheduler?

    Question2: I wanted to manually trigger the consistency task on my pull client (for a SMB puller server) by executing the following command
    $CimSession = New-CimSession -ComputerName "localhost"
    Start-ScheduledTask -CimSession $CimSession -TaskName Consistency

    However the above command results in an error that says no task name called "Consistency". When i checked for all tasks using Get-ScheduledTask command, ,I dont see any task named consistency.

    So how do i trigger a consistency task to be run on the pull client manually without having to wait for the LCM to trigger it in the next cycle?

  • #56443
    Profile photo of Don Jones
    Don Jones
    Keymaster
  • #56446
    Profile photo of Don Jones
    Don Jones
    Keymaster

    If you want to manually start the LCM on a node, there's a command for that, now.

    Get-Command -noun *DSC*

    You probably want Update-.

  • #56473
    Profile photo of vamsee
    vamsee
    Participant

    Thank you.

You must be logged in to reply to this topic.