title: Powershell download entire directory contents
body: <p><a href="http://gisdata.nd.gov/NAIP/2012/zGeoTiffs/" rel="nofollow">http://gisdata.nd.gov/NAIP/2012/zGeoTiffs/</a></p>
  
  <p>I would like to download the entire directory, each link contains another series of links.</p>
  
  <p>This is what I have so far and it works sort of (brings back a 200 status), but it doesn't download</p>
  
  <pre><code>import-module bitstransfer
  invoke-webrequest “http://gisdata.nd.gov/NAIP/2012/zGeoTiffs/”
  select -exp links|where{$_.href -like "*.tif"}
  select -exp href|foreach{start-bitstransfer $_ F:\GIS\2012GeoTiff}
  </code></pre>