Would you like to learn how to disable the Windows Firewall using Powershell? In this tutorial, we are going to show you how to use Powershell to disable the Firewall on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Related tutorial – PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell – Disable the Windows Firewall

As an Administrator, start a Powershell command-line.

Windows 10 - powershell elevated

Disable the Firewall using Powershell.

Copy to Clipboard

Verify the status of the Firewall.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

A computer running Windows has 3 Firewall profiles.

• PUBLIC – This is the default profile. It is used to designate public networks.
• DOMAIN – Applies to networks where the computer authenticates to a domain controller.
• PRIVATE – Applies to home networks and private networks assigned by the user.

Disable a specific Firewall profile.

Copy to Clipboard

List the configuration of a Firewall profile.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

List the rules of a Firewall profile.

Copy to Clipboard

List only the active Firewall rules.

Copy to Clipboard

Filter the Firewall rules to fit your needs.

Copy to Clipboard

Disable a Firewall rule.

Copy to Clipboard

Congratulations! You are able to disable the Firewall of Windows using Powershell.