Command needed on the server

Peter_1985 2,926 Reputation points
2024-12-31T03:51:10.1566667+00:00

Hi,

Within a Windows server, such as Powershell, can you list out whatever Inbound/Outbound rules (of the firewall)?

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shikha Ghildiyal 6,810 Reputation points Microsoft Employee Moderator
    2024-12-31T03:56:00.8333333+00:00

    Hi Peter_1985,

    Thanks for reaching out to Microsoft Q&A.

    You can use Get-NetFirewallRule command

    Example- Get-NetFirewallRule -PolicyStore ActiveStore

    Please check this document for all examples and syntax- https://learn.microsoft.com/en-us/powershell/module/netsecurity/get-netfirewallrule?view=windowsserver2022-ps

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.