Re: Windows service denied access to mapped drive



On 4 May, 21:00, "Joe Richards [MVP]" <humorexpr...@xxxxxxxxxxx>
wrote:
There have been more and more changes in this area. Plain and simple,
you can no longer use mapped drives across sessions. Even if you have
user1 logged in and do a runas as user1 that new session won't have
access to the drive letters of the interactive session.

Microsoft has been telling people forever (like mid-90's at least) to
not use mapped drives with services.

This is just one article about this...

http://support.microsoft.com/kb/180362/EN-US/

Basically services should all use UNCs.

--
Joe Richards Microsoft MVPWindowsServer Directory Services
Author of O'Reilly Active Directory Third Editionwww.joeware.net

---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm



berni wrote:
Hi

I have awindowsservicethat monitors files onwindowsand unix
servers. ReflectionsNFSis installed and the UNIX paths are mapped
to drives. On my developer machine (XP) theserviceruns as expected
and can see the mapped unix drives.

After installing theserviceonWindows2003 server SP1, theservice
can no longer see the mapped drives, the error message returned is:
Could not find a part of the path "M:\". When trying the full path \
\ServerIPAddress\directory access is also denied.

On the server, the mapped drives are visible in Explorer and all files
can be seen.

Hoping someone can shed some light on this issue. Any ideas??

Thanks
Berni- Hide quoted text -

- Show quoted text -

Hi Joe

thanks for your post.

Have done some more reading (and testing) and agree it can't be
resolved with logged-in user and service runas user combo as services
are run in their own sessions. Would be helpful if service behaviour
was the same for both XP and Server environments - as the service on
XP can see the mapped drives.

Will now investigate why the service cannot see UNC paths for the NFS
network.

Thanks
Berni


.



Relevant Pages

  • Re: How to display whole users sessions
    ... Usually what happens is a user has mapped drives to a resource from one ... To help try and track down where the account is getting locked out use ... sessions to find which users are connected to Active Directory. ...
    (microsoft.public.windows.server.active_directory)
  • Re: maximum number of sessions
    ... The only way system A will have multiple sessions to another system, ... connections to system Z, two sessions are established. ... I.e I can have 15 mapped drives from one machine to ... however I noticed when we use network neighbourhood to connect ...
    (microsoft.public.windowsxp.network_web)