Get-NetFirewallRule cmdlet - Is this for servers only?

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

 
Participant
2 weeks, 1 day ago.

  • Author
    Posts
  • #127741

    Participant
    Points: 195
    Rank: Participant

    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.

  • #127746

    Participant
    Points: 270
    Helping Hand
    Rank: Contributor

    If I'm not wrong Get-NetFirewallRule only exists on Windows 10 and Server 2016 computers

  • #127777

    Participant
    Points: 299
    Helping Hand
    Rank: Contributor

    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.

  • #127782

    Participant
    Points: 895
    Helping Hand
    Rank: Major Contributor

    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.