login script problems with net use

B

Brian Henry

a bunch of people are useing the same login script, but one person has this
problem every time they use it, why is this happening? the script deletes
the old network drive mappings useing net use q: /delete before it recreates
them every time, but when the delete runs for one drive (this is at logon so
nothing should be open or running) it says

net use q: /delete
There are open files and/or incomplete directory searches pending on the
connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to stop it?
thanks
 
L

Lanwench [MVP - Exchange]

First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no
 
R

Ricardo M. Urbano - W2K/NT4 MVP

Keep in mind, Lanwench, that 'net use * /del /y' will cause problems on
9x clients. 9x clients map the Z: drive to run the login script from,
so deleting all drive mappings is login script suicide on 9x.

Lanwench said:
First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no

Brian said:
a bunch of people are useing the same login script, but one person
has this problem every time they use it, why is this happening? the
script deletes the old network drive mappings useing net use q:
/delete before it recreates them every time, but when the delete runs
for one drive (this is at logon so nothing should be open or running)
it says

net use q: /delete
There are open files and/or incomplete directory searches pending on
the connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to stop
it? thanks
 
R

Ricardo M. Urbano - W2K/NT4 MVP

In case it's not obvious to the OP, instead you could do something like:

net use x: /d
net use x: \\server\share /persistent:no

Lanwench said:
Eeeeek - forgot about that. Thanks. :)
Keep in mind, Lanwench, that 'net use * /del /y' will cause problems
First line in the login script:

net use * /del /y

and when mapping the drives:

net use x: \\server\share /persistent:no

Brian Henry wrote:
a bunch of people are useing the same login script, but one person
has this problem every time they use it, why is this happening? the
script deletes the old network drive mappings useing net use q:
/delete before it recreates them every time, but when the delete
runs for one drive (this is at logon so nothing should be open or
running) it says

net use q: /delete
There are open files and/or incomplete directory searches pending on
the connection to q:

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Why is it saying this when its doing this at a logon? anyways to
stop it? thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top