Triggering a WMF 4 target node

There is no built-in cmdlet or script that you can use to trigger a DSC pull server run on a target node. You can circumvent this using an artifact of the scheduling system that WMF 4 DSC uses to ensure that the state of your target node is in compliance. DSC has two scheduled tasks that periodically monitor the state of the target node; the one we are interested in is called the consistency check. Triggering this scheduled task will make the LCM perform the normal routines (contacting the DSC pull server for a new MOF, determining whether all dependent resources are there, and so on) and run our DSC configuration. We can do this using PowerShell by issuing the following command line:

[PS]> Start-ScheduledTask -TaskName consistency `
-TaskPath (Get-ScheduledTask -TaskName consistency).TaskPath

You can also do this using the normal ScheduledTask management control panel.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset