Turn off firewall on Windows 10

Ash 60 Reputation points
2024-03-07T10:55:43.7433333+00:00

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,840 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 16,431 Reputation points Microsoft Vendor
    2024-03-15T06:44:21.41+00:00

    Hello,

    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