title: Recursively list directories in powershell
body: <p>How do you recursively list directories in Powershell?</p>
  
  <p>I tried <code>dir /S</code> but no luck:</p>
  
  <pre><code>PS C:\Users\snowcrash&gt; dir /S
  dir : Cannot find path 'C:\S' because it does not exist.
  At line:1 char:1
  + dir /S
  + ~~~~~~
      + CategoryInfo          : ObjectNotFound: (C:\S:String) [Get-ChildItem], ItemNotFoundException
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
  </code></pre>