Turn Off the Windows Firewall

 

from https://adamtheautomator.com/disable-windows-firewall/



Using netsh advfirewall set c you can disable the Windows Firewall individually on each location or all network profiles.

  • netsh advfirewall set currentprofile state off – this command will disable the firewall for the current network profile that is active or connected. For example, suppose the currently active network profile is Domain network. In that case, this command will the Firewall for that network profile.
  • netsh advfirewall set domainprofile state off – disables on the Domain network profile only.
  • netsh advfirewall set privateprofile state off – disables on the Private network profile only.
  • netsh advfirewall set publicprofile state off – this command will disable on the Public network profile only.
  • netsh advfirewall set allprofiles state off – this command will disable on all network profiles at once.


Using the Set-NetFirewallProfile PowerShell Cmdlet

netsh advfirewall set allprofiles state off


留言

熱門文章