Create network drive at server boot

sidokit used Ask the Experts™
Have a windows 2003 server which will be using net appliance storage.  Three volumes have been configured on the net appliance storage to be used by the application server.  Access to the volumes is controlled by username and password that is local to the net appliance.  
        Once can log on to the windows 2003 application server and run a command procedure to map drives to the three volume on the net appliance.   The net use  command  in the command procedure includes the local username of the net appliance.  This enable the logged on user asccess to the storage on the net appliance once the drives are mapped.
        However the objective to have network drive created when the server boots.   These network drives will be viewed by anyone that logs on as disconnected drives.  When the application run under a local account on the windows 2003 server that is the same name and password as defined on the net appliance, then the application will have access to the volumes configured on the net appliance.
        The question is how to get the network drives created  when the server boots.   I have created an OU, place the server name in that OU.  I created a  GPO and linked it to that OU.  In the GPO under computer configuration\windows settings\scripts\startup I have a vbs file to run.
I have  RUN LOGON SCRIPTS SYNCHRONOUSLY and RUN STARTUP SCRIPTS ASYNCHRONOUSLY enabled   at  computer configuration\administrative template\system\scripts.  
  The contents of the VBS file :

set  objnetwork = createobject("")
objnetwork.mapnetworkdrive "F:", "\\\data1"

        This is not creating the network drive at boot.  I am looking for any suggestion on how to achive the creation of network drives when the server boots that point to the storage on the net appliance.    The network drives need to be accessible by the application when it runs in batch mode or during normal application processing whith out having a person logged on.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Brian BEE Topic Advisor, Independant Technology Professional

Drive mappings are tied to a user profile. So if no user is logged in <> no drive mappings. You might try changing to UNC (\\server\share) instead of drive maps if possible.
Hi sidokit,

On the Windows 2003 Server, create a batch script containing the following Line:
net use F: \\\data1 /user:netappliancelocaluser <password>

Place the script in the Local Computer Policy ==> Windows Setting ==>Scripts(Startup/Shutdown) ==> Startup Scripts.
Add the script to the Startup Scripts, reboot the Server and check if the drive mapping have happened successfully.
Probably my solution not ideally but why not create one special user and configure autologin and drive-mapping to his.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Brian BEE Topic Advisor, Independant Technology Professional

Sage444's idea would work, but obviosuly there are security risks in having a system log on automatically at boot.

You're absolutely right but I think drive mounting is user-level operation and users login should be in this or other way


i did not get a complete solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial