title: Windows Service cannot access network location (UNC) Path
body: <p>I have a windows service that polls a folder continuously for new files.For local directories this works fine.But when it comes to UNC Paths on another system in the same network,the service cannot access the folder it seems.I have refereed to this post <a href="https://serverfault.com/a/881272">https://serverfault.com/a/881272</a> ; it states that i need to run the service as the currently logged in user.How im i supposed to do that?</p>
  
  <p>The path i wish to monitor using the service is </p>
  
  <pre><code>\DESKTOP-PC\Users\me\myfolder
  </code></pre>
  
  <p>Please advice </p>
  
  <p><strong><em>UPDATE:</em></strong></p>
  
  <p>I have developed the service using topshelf.I want to poll a folder on another local machine in the same network.I go to network places,double click on the computername,it asks for credentials,i enter the username and password of the remote computer i get access to the files on the system for that user(in explorer).</p>
  
  <p>Now when i set the service to run as the local machine user under this machine,it cannot access the remote UNC Path that is accessible using explorer.I have tried installing it as the remote machine user,but it fails.</p>
  
  <pre><code>myService.exe install -username:DESKTOP-REMOTE\myname -password:mypassword
  </code></pre>