Showing posts with label netsh. Show all posts
Showing posts with label netsh. Show all posts

Monday, December 11, 2017

Tips & Tricks – Import/Export Windows Firewall Settings Command-Line

Here’s a nice tip for those that for some reason need to configure Windows Firewall (or Windows Defender Firewall on Windows 10).

The recommended way to do this should be using a group policy but because you may have a non-domain joined machine on your network, here’s how to do it.

  1. First of all, configure everything you need in Windows Firewall on a reference machine
  2. Then, open an elevated command-prompt and type the following command:
    netsh advfirewall export “C:\Temp\WindowsFirewallRules.wfw”

    advfirewall01
  3. Now that you have the file, you can import it to any machine using the following command:
    netsh advfirewall import “C:\Temp\WindowsFirewallRules.wfw”

    advfirewall02

If for any reason you need to reset firewall rules to default values just type:
netsh advfirewall reset



Friday, June 30, 2017

Win10 Deploy – Changing Traffic Priority Wired vs. Wireless

If you’re doing an OS Deployment and you have both wired and wireless connections active, you may notice some strange behaviors during your deployment. This normally happens if for example for security reasons your wireless lan don’t have access to some resources.

To make sure your traffic always travels on your wired connection, simple run the following command that changes the priority of your ipv4 traffic:

netsh int ipv4 set interface “Ethernet” metric=2

Note that this command is for Windows 8 and above. For Windows 7 change “Ethernet” to “Local Area Connection”.

And you’re done!

Friday, February 26, 2016

Windows 10 Tips - Getting a Detailed Report About Your WiFi Connection































If you're getting some issues with your WiFi connection in Windows 10, here's a quick and nice way to get a detailed report without installing additional software:
  • Open a command line as an Administrator (Run As Administrator)
  • Now run the following command line:
    netsh WLAN show WLANreport
  • Now, open a browse and copy/paste the this path:
    C:/ProgramData/Microsoft/Windows/WlanReport/wlan-report-latest.html
And here's a nice and detailed report about all your wifi activity, errors, etc.