Unable to automount Network Share in windows

I have a win2k3 server that needs to mount a netapp CIFS share automatically at boot. The issue isnt that i cant mount the drive, i need to automount the drive during boot and before users log in. I tried using autoexnt.bat, it mounts the drive but doesnt seem to pass the username and password.

right now my script looks like :
---------------------
@echo off
net use P: \\sharname\share /user:username password
---------------------

Any other ideas?

Thanks!
wallie400Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

debuggerauCommented:
try net use P: \\ipaddress\share /user:\\DOMAIN\username password
0
greymirrorCommented:
what debuggerau said.
Also you may want to use

net use P: /delete

first - to delete an existing connection (which may be as a different user?)
0
wallie400Author Commented:
Well the machine isnt on a domain. I had thought about that.

Any other suggestions? Maybe a .vbs script that someone has?

0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

debuggerauCommented:
why not just use explorer -> Map network drive...

Or are you sharing the share?
0
wallie400Author Commented:
The share is on a Netapp, It needs to automount without a user logging in.
0
debuggerauCommented:
why would you want to automount something without any users?
0
msgopakumarCommented:
i'm assuming some of the services started at system boot need this storage (such as media server).
i got this working using the srvany tool from microsoft.  use net use in a batch file. once the service is set-up, make sure to select start at boot.
also, you may need to add the dependancy for this service to the netlogon service

for detailed instructions, look at
http://support.microsoft.com/kb/137890
Hope this helps

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.