Windows Services and the Network
• CommentsLet’s make this very clear: a service should not use or change drive mappings at all. See KB180362 (INFO: Services and Redirected Drives) (webcite) and Services and Redirected Drives (MSDN) (webcite) for more information. If a service needs to use network resources, it should use UNC paths.
Network drive mappings are handled differently on different Windows versions. In addition, network drive mappings are one type of an “MS-DOS Device Name”, so they fall under the additional complications described in Local and Global MS-DOS Device Names (webcite).
Note that a service running as LocalService (webcite) uses anonymous credentials to access network resources, and services running as NetworkService (webcite) or LocalSystem (webcite) use machine account credentials.