Author Posts

October 10, 2017 at 7:18 am

Hello Everyone,

I'm writing the DSC script for configuring the virtuals machine, I just want that machine should get configured with the push method and should not go and check its .mof file again.

This will be like I create a virtual machine executes the DSC script, the machine will be configured and then I don't bother if it changes its state again.

please help me with the appropriate approach to achieving the objective.

This would be a great help

Thank you in advance

October 10, 2017 at 2:21 pm

You would configure its LCM to “ApplyOnce,” then, not “ApplyAndAutoCorrect.” This is actually the default on most systems.

October 10, 2017 at 3:49 pm

Thanks alot Don,

Could you please confirm if it is ApplyOnce on ApplyOnly, as I'm unable to find ApplyOnce on the technet doc.

Script Block
Configuration setupLCM

Node testserver
RebootNodeIfNeeded = $true
ConfigurationMode = 'ApplyOnly'



SetupLCM -OutputPath C:\dsc\LCM\

October 10, 2017 at 3:53 pm

It's whatever the documentation says :).

October 10, 2017 at 5:27 pm

Thank you so much Don 🙂