title: PowerShell FileSystemWatcher Not Working With Mapped Azure File Share
body: <p>I'm trying to monitor files appearing in an azure file share using the FileSystemWatcher in PowerShell. The script works correctly when looking at folders on the machine, but when I point it to look at a mapped rive that has been mapped to azure File share it reports &quot;The directory name is invalid.</p>
  <p>New-Object : Exception calling &quot;.ctor&quot; with &quot;2&quot; argument(s): &quot;The directory name  is invalid.&quot;</p>
  <p>The mapped drive appears in explorer and can be accessed.  Can FileSystemWatcher access azure resources?</p>