Hi,
I have created a service that is used to run scheduled events. In
oreder to do this, it needs to be able to access mapped drives. When it
completes, it sends out an e-mail with the success status. I've encountered
problems with mapped drives on both XP and Win2k machines, when the user is
not logged on. Even though the service logs in with administrative rights,
it doesn't see the mapped drives of the user. The solution I came up with
reads the registry for the mappings, removes the registry settings, maps the
drive. When it's doen it disconnects the drive, and restores the registry.
This works on Win2k, but with XP restoring the registry settings doesn't
allow the drive to reconnect.
The other problem is that with XP, when it tries to send the e-mail
logged off, it hangs, and doesn't send it until you log on again.
The service is set up as a local user with network and admin permission.
Any help is appreciated.
Thanks in advance,
Jeff