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

net drives not re-connecting... 1

Status
Not open for further replies.

adsfx

Programmer
Jun 4, 2003
237
0
0
GB
Hi,
I have XP clients running off NT Server.
drives are mapped [with reconnect at logon ticked] but...
drives arent mapped on re-boot?
have tried using a batch file with 'net use' at startup
to reconnect the drives but does not work on start up.
but running bat file does work...
have heard that this could be caused by connection bein too slow...but ping times seem ok

ne ideas cheers MG
 
Usually the problem is that by default for XP (and Win2k) the net use /Perisistent value is set to Yes. You have gauranteed that this setting is in place by checking the 'Reconnect at logon' checkbox.

Three steps shoud resolve the issue for you:

1. Modify XP's logon behavior through Group Policy. See the last section of my FAQ: faq779-4017

The issue is that with the default of asynchronous processing of logon commands XP can process your mapped drive statements prior to it having an actual network connection, and the maps fail. By changing the process as recommended in the FAQ XP is asked to wait for the network connection to be made before processing the map statements.

2. Revise slightly your logon scripts:

Prior to any mapping, enter the lines:

Net use * /Delete
Net use /Persistent:No

3. You might reconsider your mapping in cases in which alternate credentials are being used.

See the MS KB note here:
 
bcastner thanx a lot
dont think mmc config has helped
but.. the bat file with the lines you supplied connects the mapped drives
do you no how to get it to not ask for confirmation [y/n]?
so my users dont have too type in 'Y'
also does it close the window afterwards?

great advice
cheers MG
 
...errr
after a second restart it doesnt work nemore
ps i have 4 machines with the same drives which connect absolutely fine!
is there something i can copy off one of the good machines
that will make these ones work

cheers MG [clutching at straws]
 
All NET commands accept the "/y" parameter to remove user confirmation prompting.

This should close any DOS session window as well.

I am not sure why one machine would react diffferently from four others. Make certain that any older mappings are removed.



 
Hi,
am still having this problem- ne ideas welcome
how do i clear all mapped drives history to start again
have disconnected drives and used 'net use */delete'
which i think deletes some mapped drive history -
but when i go to map the drives again it still remembers previous parameters
tools>map network drives
e.g. in the drive box it shows previous paths
in the path box it shows the previous paths
cheers MG
 
Two things:

1. Implement the change in the last paragraph of my FAQ in terms of logon script processing: faq779-4017

2. You can pass alternate credentials with the Net Use command:

NET USE [drive: | *] [\\computer\directory [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]
NET USE [port:] [\\computer\printer [password | ?]]
[/SAVEPW:NO] [/YES] [/NO]

NET USE drive: | \\computer\directory /DELETE [/YES]
NET USE port: | \\computer\printer /DELETE [/YES]
NET USE * /DELETE [/YES]

NET USE drive: | * /HOME



drive Specifies the drive letter you assign to a shared directory.
* Specifies the next available drive letter. If used with /DELETE, specifies to disconnect all of your connections.
port Specifies the parallel (LPT) port name you assign to a shared printer.
computer Specifies the name of the computer sharing the resource.
directory Specifies the name of the shared directory.
printer Specifies the name of the shared printer.
password Specifies the password for the shared resource, if any.
? Specifies that you want to be prompted for the password of the shared resource. You don't need to use this option unless the password is optional.
/SAVEPW:NO Specifies that the password you type should not be saved in your password-list file. You need to retype the password the next time you connect to this resource.
/YES Carries out the NET USE command without first prompting you to provide information or confirm actions.
/DELETE Breaks the specified connection to a shared
resource.
/NO Carries out the NET USE command, responding with NO automatically when you are prompted to confirm actions.
/HOME Makes a connection to your HOME directory if one is specified in your LAN Manager or Windows NT user account.

To list all of your connections, type NET USE without options.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top