How to dump firewall rules into file with powershell

Hi everybody,

again a short note for my self to not search again in my offline notes. 😉

How to dump Firewall rules with Powershell 3.0 and newer in a file “oneliner”.

Inbound rules:


Outbound rules:


TechTip: Windows Firewall Rule Needed To Enable Share Provisioning in a Windows Failover Cluster on Windows Storage Server 2008


This document is a step by step guide to configuring a firewall rule on Windows Storage Server 2008 to enable share provisioning.

To download the document, please click here.