Turn off firewall on Windows 10

Ash 40 Reputation points

I turned off the firewall using the command : netsh advfirewall set allprofiles state off. When I change the network from private to public, the firewall is automatically turned on for public network. Is It possible to stop Windows 10 from automatically turning the firewall on while switching the network ?

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,745 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 13,876 Reputation points Microsoft Vendor


    Powershell cmdlet:

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

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments