Author Posts

October 10, 2017 at 5:26 pm

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

October 10, 2017 at 5:30 pm

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.

October 10, 2017 at 5:34 pm

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.