get-netfirewallrule: The term 'get-netfirewallrule' is not recognized as the name of a cmdlet, function, script file, or...


 Display a list of all Windows Firewall rules. 


When I ran Get-netfirewallrule on my Windows 7 PC, I got an error as above in the title.


This cmdlet is pretty new. It is only applicable to Windows 8.1, Windows Powershell 4.0, and Windows Server 2012 R2.