Welcome › Forums › General PowerShell Q&A › Get-NetFirewallRule cmdlet - Is this for servers only?
This topic contains 3 replies, has 4 voices, and was last updated by
I have Powershell 5.1 (64-bit). I cannot find Get-NetFirewallRule in my PC environment — Windows 7 (64-bit).
Would be grateful for some guidance.
If I'm not wrong Get-NetFirewallRule only exists on Windows 10 and Server 2016 computers
Yeah, there are a fair few cmdlets that rely on core OS frameworks introduced in Windows 8 or Windows 10, and thus can't be ported back to Windows 7 even with PowerShell 5.1.
Get-NetFirewallRule requires MSFT_NetFirewallRule wmi class which is available from Windows 8, hence won't work in Win 7.
You must be logged in to reply to this topic.