September 2017
Beginner to intermediate
272 pages
8h 8m
English
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 ...
Read now
Unlock full access