title: Using Get-Childitem at root of UNC Path \\SERVERNAME
body: <p>We're trying to use PowerShell as a file-replication tool, but having an issue.</p>
  
  <p>The source server is a Linux-based closed OS, where users, through a GUI, create multiple network shares, which are then accessible by the UNC path <code>\\SERVERNAME\NETWORKSHARE</code>. In the OS, of course, the NETWORKSHARE is actually located multiple levels deeper than the root.</p>
  
  <p>We've talked to the developer of the OS, and they cannot/will not enable access to the root of the folder where all the NETWORKSHARE folders are stored.</p>
  
  <p>I've turned to PowerShell to try and find a way. My initial thinking was to send a <code>Get-ChildItem -Directory</code> to <code>\\SERVERNAME</code> to grab all the NETWORKSHARES, and then pipe that to <code>Copy-Item/Robocopy</code>, but it doesn't work. </p>
  
  <p>I know the server needs their own local (non-AD) credentials.</p>
  
  <p>Is there a way to do what I want to do that I'm just not seeing ?</p>
  
  <p>Thanks in advance!</p>