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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Persisting Mapped Drives

Status
Not open for further replies.

ddewan

IS-IT--Management
Jan 16, 2002
5
US
I am trying to find out a way to persist the mapped drive connections .

I have the following script: -
NET USE \\Server\Share password /USER:Domain Name\Username.

Can I put this script in the autoexec.bat file so that every time the server is rebooted, the share would automatically be mapped and we would not require to supply the username / password for the share.

In your opinion, is there a better way to handle this or any other recommended solution.

 
What type of OS are you running this on? Is it a client connecting to a server? Is the user logging into a domain? Is this the server? We need a little more info. :)
 
I'm trying to access a Windows 2000 Advanced Server from another Windows 2000 Advanced Server. Both users are domain administrators.
 
I would think in explorer you go to tools map network drive and then put in the information and check reconnect at logon
 
No it would ask for the password every time u reconnect.
 
Can't you use the '/persistent:yes' switch in the 'net use' statement? That's what I do.

ShackDaddy
 
Hey ShackDaddy

NET USE \\Server\Sharename password /USER:Domain\UsrName /persistent:yes

This gives me an error. Does this work for you, are u able to reconnect on restart without supplying the password ?
 
Yes. My own script looks like:

net use i: \\server1\share /PERSISTENT:YES /USER:domain\user password

Are the two servers in the same domain?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top