How To Disable Windows Firewall via Command prompt

    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • SecureAuth version affected: All


    Firewall needs to be turned off for whatever reason, but disabling it via the GUI does not do the trick for the local settings.  The GUI specifically references the group policy settings that are pushed down from your domain controller.  Doing it via command prompt controls the local server's firewall settings



    Use command prompt to disable all firewall settings on the server to make changes locally.


    1. Open up command prompt in admin mode, and type in the following command: (this command shows the profiles off the local firewall settings)

      netsh advfirewall show allprofiles

    2. Once you verified it, you can turn off individual profiles or you can shut them all off.  To turn them all off, simply type the following:

      netsh advfirewall set allprofiles state off

    3. Similarly, to turn off one profile, or even view one profile, you specify which one you want to see, and shut it off accordingly.

      netsh advfirewall show public 
      netsh advfirewall set public state off

    0 out of 0 found this helpful



    Please sign in to leave a comment.