Turning Off Firewall Using PowerShell

Run PowerShell as admin, execute the following command. This will turn off your firewall.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Turning On Firewall Using PowerShell

Run PowerShell as admin, execute the following command. This will turn off your firewall.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

Turning Off Firewall Using Windows Command Prompt

Run command prompt as admin, and execute the following command:

netsh advfirewall set allprofiles state off

Turning On Firewall Using Windows Command Prompt

Run command prompt as admin, and execute the following command:

netsh advfirewall set allprofiles state on