Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive mapping on system startup required

Status
Not open for further replies.

patstone

IS-IT--Management
Aug 20, 2004
168
GB
Lads,

Q:
Is there a way that a Network drive can be defined on a server prior to logon. Ie. at system startup

Scenario:
I have a 2000 server that has a service running that requires a Persistant Network drive to be mapped.

Workaround:
Currently I run a scheduled task that runs during Logon regardless of who logs on, as the script uses NET USE with userID and password included to establish connection.

Problem:
In the case of Powerfailure or reboot, the server does not process the script.
Because typicaly no one logs on to the server.

Tests:
I have set the schedule to run at system startup and it seems to try to run the task. but cannot establish a drive mapping.

Plea:
Is there another way I could map a drive at system startup?


Would be very gratefull for any ideas at all.

Regards
 
Have you tried the local computer group policy yet?
you can add the script under

windows setttings\Scripts: Startup/Shutdown
 
Change the Scheduled Task to run at system startup instead of at logon. Go into the properties of the scheduled task and click on the Schedule tab, under the Sheduled Task dropdown select At System Startup. That should take care your issue.

RoadKi11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top