title: Powershell copy-item won't copy txt files over unc path
body: <p>Ok, so I am befuddled, I search high and low and have not be able to figure out how to get this to work.</p>
  
  <p>Situation: I'm on workstation x and I need to copy *.txt from UNCpath1 to UNCpath2 recursively.</p>
  
  <p>If I do this:</p>
  
  <pre><code>copy-item -path \\source\folders\* -destination \\destination\folders\$year\$month -recurse
  </code></pre>
  
  <p>everything works, but I get the folders as well.</p>
  
  <p>These do not work:</p>
  
  <pre><code>copy-item -path \\source\folders\*.txt -destination \\destination\folders\$year\$month -recurse
  
  copy-item -path \\source\folders\* -include "*.txt" -destination \\destination\folders\$year\$month -recurse
  
  copy-item -path \\source\folders\* -filter "*.txt" -destination \\destination\folders\$year\$month -recurse
  </code></pre>
  
  <p>I have also tried variations on this and read high and low but can't figure it out. Scripting is obviously not my strength.</p>
  
  <p>Thanks in advance.</p>