Top 10: Windows Firewall Netsh Commands (via: Windows Server content from Windows IT Pro)
Posted by jpluimers on 2013/12/24
For my own reference, especially since setting the network profile in Windows 8 from the UI got much more difficult.
It is doable though, but not in logic places; I like the secpol.msc way most: windows 8 – How do I set my wireless network to be private instead of public? – Super User.
Same for renaming the network, which also has a secpol.msc way that is easy:
- Press Win+R, then type
secpol.msc- Click on “Network List Manager Policies”
- Double-click on your network
- Optionally give your network another name
- Click on “Tab Network Location”
- Set “Location Type” to “Private”
Go back to Network and Sharing Center to check the result.
To start the Network and Sharing Center:
control.exe /name Microsoft.NetworkAndSharingCenter
Top 10: Windows Firewall Netsh Commands | Windows Server content from Windows IT Pro.
including:
- Checking if the current profile is set to private/public/domain:
netsh advfirewall show currentprofile
- Checking the firewall rules for applications:
netsh advfirewall firewall show rule name=all
- Enabling:
netsh advfirewall set allprofiles state on
- and disabling:
netsh advfirewall set allprofiles state off
–jeroen
via:






Leave a comment