Disable or Enable Firewall on Hyper-V

Disable or Enable Firewall on Hyper-V

To disable the firewall in the currently running profile, you can issue the command:
netsh advfirewall set currentprofile state off

And re-enable with:
netsh advfirewall set currentprofile state on

Note:  If your Hyper-V is internet facing, disabling the firewall is not recommended.

5 Responses so far.

  1. Very important to note that this is only to disable the currentprofile. Many users won’t notice that and wonder why they’re still running into issues after they think they’ve disabled teh firewall. What you should run for troubleshooting purposes is:

    netsh advfirewall set allprofiles state off.

    Remember to turn back on when you’re done.

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 5 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.