Add firewall rule – PowerShell

Some days ago I need on multiple windows 10 systems add rule to allow rule on firewall which will allow ping application server. Instead of do it by clicking I prepared simple command which is adding rule on PC. I only needed ping so my command will look like that:

Also we can use this command to block some outbound traffic on specific port.

And allow traffic for specific application:

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *