How to Export & Import Windows Firewall Rules (PowerShell)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
# Module setup
Install-Module -Name Firewall-Manager
# Module import
Import-Module Firewall-Manager
# Show all Rules
Get-NetFirewallRule |Format-Table|more
# Show all rules containing "Datei"
Get-NetFirewallRule -DisplayName "Datei*" |Format-Table|more
# Export
# Export-FirewallRules -Name "<Rule name>" -CSVFile "<Path to the CSV>"
# Export-FirewallRules -Name "<Rule name>" -JSON "<Path to the JSON>"
# Import
# Import-FirewallRules "<Path to the CSV>"
# Import-FirewallRules -JSON "<Path to the JSON>"
# Help
# Get-Help Export-FirewallRules