Backup-FirewallRules

1.0.0

Uses the built-in "netsh advfirewall export", the same backup as "Export Policy..." in the Windows Firewall
console. The .wfw file holds all rules and the profile settings and can be restored with
Restore-FirewallRules.ps1 (or "Import Policy..." in the console).

The .wfw file is binary. A CSV of the rules is written next to it, so you can see what the backup contains
Uses the built-in "netsh advfirewall export", the same backup as "Export Policy..." in the Windows Firewall
console. The .wfw file holds all rules and the profile settings and can be restored with
Restore-FirewallRules.ps1 (or "Import Policy..." in the console).

The .wfw file is binary. A CSV of the rules is written next to it, so you can see what the backup contains.

Run it as administrator. The firewall itself is not changed.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Backup-FirewallRules

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Coinetic AI Security - https://coinetic.io. MIT licence.

Package Details

Author(s)

  • Coinetic AI Security - https://coinetic.io

Tags

Coinetic Windows WindowsServer Firewall WindowsFirewall FirewallManager Backup Export Rules

Dependencies

This script has no dependencies.

Release Notes

1.0.0: backs up all Windows Firewall rules and settings to a .wfw file, plus a readable CSV next to it.

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 9 12/5/2026