Skip to content

Fix unnecessary elevation on export Microsoft.Windows/FirewallRuleList#1525

Open
Gijsreyn wants to merge 1 commit intoPowerShell:mainfrom
Gijsreyn:gh-1524/main/fix-elevated-firewall
Open

Fix unnecessary elevation on export Microsoft.Windows/FirewallRuleList#1525
Gijsreyn wants to merge 1 commit intoPowerShell:mainfrom
Gijsreyn:gh-1524/main/fix-elevated-firewall

Conversation

@Gijsreyn
Copy link
Copy Markdown
Collaborator

@Gijsreyn Gijsreyn commented May 9, 2026

PR Summary

This pull request removes the unnecessary requireSecurityContext on export for Microsoft.Windows/FirewallRuleList DSC resource.

PR Context

Fixes #1524

Copilot AI review requested due to automatic review settings May 9, 2026 10:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the manifest-enforced elevation requirement for the export operation of the Microsoft.Windows/FirewallRuleList DSC resource so firewall rule enumeration can run non-elevated, matching the resource’s read-only implementation and addressing issue #1524.

Changes:

  • Dropped requireSecurityContext: "elevated" from the resource manifest’s export operation.
  • Updated Pester tests to run export validation on Windows without requiring an elevated session.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
resources/windows_firewall/windows_firewall.dsc.resource.json Removes the export-time elevation requirement from the resource manifest.
resources/windows_firewall/tests/windows_firewall_export.tests.ps1 Removes elevation-based skipping so export behavior is validated in non-elevated Windows runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.Windows/FirewallRuleList requires unnecessary elevation on Export

2 participants