The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,570 other followers

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:

  1. Press Win+R, then type secpol.msc
  2. Click on “Network List Manager Policies”
  3. Double-click on your network
  4. Optionally give your network another name
  5. Click on “Tab Network Location”
  6. 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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: