Tuesday, December 19, 2017

Tips&Tricks – Opening CMD or Powershell Directly from the Explorer Folder

And here’s a nice tip that at least for me was a nice surprise. I think it only works since Windows 10 but I’ve not tested it yet.

There’s a lot of articles explaining how to tweak Windows so that when you right-click somewhere you can open command-prompt (CMD) or anything else.
For me this is not ideal because I need to use a lot of different computers and it’s more practical to know tips and tricks that work on any computer that is not mine.

So, imagine you’re on a folder using Windows Explorer and you need to open powershell or cmd there.
It’s as easy as write that up in the Explorer’s address bar.

Untitled
And yes…is as simples as that! ;)

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