Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Need to map drives while user logged off

Need to map drives while user logged off 12 years 9 months ago #2823

  • jacko0
  • jacko0's Avatar
  • Offline
  • Frequent Member
  • Posts: 45
  • Karma: 0
Hi, I am using win2000 on a domain. I have an application which is now running as a service. But the service needs to access 2 network drives.

I want to be able to have the pc logged off but the service able to access 2 network drives, how can i do it?

At the moment the user is logged on and the drives are mapped.

Thanks for any help

Jacko
The administrator has disabled public write access.

Re: Need to map drives while user logged off 12 years 9 months ago #2825

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
Hmm the idea of services is that they run when no user is logged on as well.. but to map the network drive you'd need a user to log on and give credentials, you can set the service to have its own set of credentials..

1. Open the services MMC (a quick shortcut is to click start >> run >> type 'services.msc' )
2. Open the properties for your service
3. Click the 'log on' tab
4. Change from 'Local System Account' to 'This Account'
5. Give it the account you want it to log on as

Now it should work even if no user is logged in locally. It will use the credentials of the account you setup. However I dont think you'll be able to use the mapped drives, you'll have to provide the path \\server\sharename or whatever.

Lemme know if that helps.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
The administrator has disabled public write access.

Re: Need to map drives while user logged off 12 years 8 months ago #2908

  • jacko0
  • jacko0's Avatar
  • Offline
  • Frequent Member
  • Posts: 45
  • Karma: 0
:D

It works!!

Thanks for the help

I changed all the drive mapping's to UNC paths and changed the service to run as the user not the system account, just like you said


Jacko
The administrator has disabled public write access.

Re: Need to map drives while user logged off 12 years 8 months ago #2909

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
Hehe glad I could help.. they say I answer questions well on full moon nights.. this has nothing to do with my being bitten by a wolf when I was 12..

Cheers mate,
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
The administrator has disabled public write access.
Time to create page: 0.080 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup