Author Topic: Windows Services and Network drives.  (Read 10489 times)


  • Administrator
  • Newbie
  • *****
  • Posts: 12
  • CharruaSoft
    • View Profile
    • CharruaSoft
Windows Services and Network drives.
« on: October 27, 2015, 06:31:08 PM »

Windows Service can’t access mapped network drives. The reason is that the Windows Service starts before any user is logged in, and the mapped network drives depend on the logged user.
An alternative is to use the full UNC path, (\\Server\share\path\to\file.ext). For this to work the Service has to logon as a specific user.
The procedure for setting Log on credentials for a Windows Service is the following:
1. Run the Services console.
2. Select the Windows Service and right click on it.
3. Select Properties, go to LogOn tab.
4. Select “This account” and enter user/pass for the computer Administrator.
5. Select OK and restart the service.

Hope that this info is usefull for you

charruasoft team