DSC : cfirewall module help needed

This topic contains 2 replies, has 2 voices, and was last updated by  Deep 1 week, 6 days ago.

  • Author
    Posts
  • #81707

    Deep
    Participant

    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

  • #81712

    Don Jones
    Keymaster

    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.

  • #81715

    Deep
    Participant

    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.

You must be logged in to reply to this topic.