dsccommunity / dsccommunity/NetworkingDsc

Remove group of FW rules

Open
#503 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
PowerShell
Stars
235
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,
Just recently started using this module, and I was wondering if there's a way to remove multiple firewall rules that belong to one group.

Been using a simple block to try and do this:

dsc_firewall { 'Remove fw rules':
    dsc_name         => '*',
    dsc_group        => 'examplegroup',
    dsc_ensure       => 'Absent',
  }

That doesn't error out, but doesn't actually remove the rules. Tried escaping the wildcard with a backslash but same thing. Any thoughts?

Thanks in advance,
Daniel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dsc_firewall block shown in issue #503 and inspect how grouped rules and wildcard dsc_name values are handled. Done means a group of firewall rules can be removed with the documented resource syntax and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
networking, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.