Link to home
Start Free TrialLog in
Avatar of wallie400
wallie400

asked on

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!
Avatar of debuggerau
debuggerau
Flag of Australia image

try net use P: \\ipaddress\share /user:\\DOMAIN\username password
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?)
Avatar of wallie400
wallie400

ASKER

Well the machine isnt on a domain. I had thought about that.

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

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

Or are you sharing the share?
The share is on a Netapp, It needs to automount without a user logging in.
why would you want to automount something without any users?
ASKER CERTIFIED SOLUTION
Avatar of msgopakumar
msgopakumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial