Create a New Firewall Rule with PowerShell This is a short post to share a PowerShell script that will create a new Windows Firewall Rule on a local computer.
This post is contains a demo on how to enable Windows Firewall with PowerShell in Windows Server. This might be needed if you have discovered Windows Firewall is disabled on your or multiple computers, or you might want to re-enable it after disabling this for a test (see my other post on disabling instead of enabling).
This post contains a demo on how to disable Windows Firewall with PowerShell on a Windows computer. Disabling the Local Firewall on Windows is not a recommended move, and it will ultimately make your computer less secure.