best business builder

Disable The Firewall On A Windows Nano Server Using PowerShell

In this article, I’ll show you how to disable the Windows Firewall on A Windows Nano Server 2016.

Below, you will see two methods to do it one using Netsh and the second using Set-NetFirewallProfile (PowerShell) you can use either of them.

To disable the firewall connect to your Nano Server using PowerShelland run the line below to disable the Firewall:

netsh advfirewall set allprofiles state off

To enable It back run:

netsh advfirewall set allprofiles state on

You can also use the line below to disable it using a PowerShell cmdlet:

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

And the line below to enable it:

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

 

 

 

Thanks

one click social media designs

Leave a Reply

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