title: netsh show rules filtered by local port
body: <p>The commande here allow to show all the rules, </p>
  
  <pre><code>    netsh advfirewall firewall show rule dir=in name=all
  </code></pre>
  
  <p>I would like to filter </p>
  
  <ul>
  <li>rules which are related to the port 445.</li>
  <li>currently enabled rules. </li>
  </ul>
  
  <p>I read the documentation and i could see that for example, the optional option <code>[dir=in|out]</code> is not documented.</p>
  
  <p>How can it be achieved?  Where a documentation about undocumented possibilities </p>
  
  <p>I may use VB script or Powershell 2.0 if required.</p>