By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,696 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,696 IT Pros & Developers. It's quick & easy.

Windows service running when not logged in

P: n/a
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,
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.