DSC : cfirewall module help needed

Hi Everyone,

Im using cfirewall module for manageing firewall rules in my dsc script.

I installed the cfirewall module from powershell gallery on the machine from which I will be executing scripts.

.mof file got genrated however when I try to push the configuration it fails saying the cfirewall module is not installed on the target machine.

Is there any better way to manage firewall using dsc…

How can I install module on the target machine in the same script…

Please share your views on it

Thank you in advance

The module also needs to be deployed to whatever machines are trying to process the MOF. You can do that yourself, or you can set up a pull server, and configure node LCMs to download modules from there. Covered in “The DSC Book,” if you’re interested, but also in the documentation.

Thank you Don,

So is there any way I can install the cfirewall module thru the same script if I’m using push method.

Or is there any other way to open firewall rules without installing cfirewall module.