title: Network access to windows service
body: <p>I have problem with creating service that has access to files on network disk.</p>
  
  <p>Service must have admin rights and it will be run by users that don't have admin privileges.</p>
  
  <p>I send path as <code>UNC</code>
  and file is seen by service but it return <code>ACCES_DENIED</code> errors when try to open or do anything on Network drive.</p>
  
  <p>When I run my service as server , everything works fine.</p>
  
  <p>I try to find answer but everywhere I can found only partial answers that do not help me at all.</p>
  
  <p>========</p>
  
  <p>I read that standard service logged as SYSTEM can't have access to network.
  So i tried to log id as</p>
  
  <ol>
  <li><code>NetworkService</code>, <code>LocalService</code>
  It didn't work. After run it as one of those user my service can't save files on c:</li>
  <li>
  Some kind of admin account.But I didn't manage to success on that.</li>
  <li>Actually logged user.
  I don't know how to get password for current user.
  Still this will not work for user without admin rights.</li>
  </ol>
  
  <p>========</p>
  
  <p>Please tell me what can I do?
  There are plenty of Services that use somehow network resources. How do they do that?</p>