net use mapped drives keep unmapping

G

Guest

hi all,

I have an on going problem, and I know the problem, but not the reason why
(isn't that always the way!)

I use bat scripts for users startup. at the begining i use:

net use g: /delete
net use h: /delete

etc....for all the mapped drives

I have a bunch of mapped drives for users as in:

net use h: \\server1\storage\username /persistent=no
net use g: \\salesserver\folder\folder1 /persistent=yes

now, i have inherited this setup..so i started experimenting.
from what i know persistent=yes means that it will save the connections
as they are made, and it will restore them at next logon. if i choose
persistent=no it doesn't save the connection or subsequent connections, but
the existing connection will be restored at next logon.

now, the problems i have are:

at the start of all the scripts, all of the mapped drives are deleted with
net use drive_letter: /delete

so they are all deleted.

then below that they are remapped:

net use drive_letter: \\server\share /persistent=no except for the users home
directory (mapped my documents directory)

so mid-day afternoon, dries start unmapping...not much i can think of doing..
anyone got any insights...

small, and slightly dumb problem...very annoying..

tia
bernard



--
 
G

Gautam Anand

Need more clarifying

1. You are using the persistent:switch and the net use /delete
command. If you rem out the net use /delete, does the drive stay
mapped at next logon? (I noticed you are using persistent=no - the
syntax is ':' instead of the '=')(but I don't know if that works too)

2. Can you repro the issue at will. I mean is there certain steps
which the users take when the drives get unmapped. Do they only get
unmapped (disconnected) at next boot.

3. Just looking for more clues



--
Gautam Anand
e: gautam at hotpop dot com
---------------------------------
"bluNOboxSPAMthief"
| hi all,
|
| I have an on going problem, and I know the problem, but not the
reason why
| (isn't that always the way!)
|
| I use bat scripts for users startup. at the begining i use:
|
| net use g: /delete
| net use h: /delete
|
| etc....for all the mapped drives
|
| I have a bunch of mapped drives for users as in:
|
| net use h: \\server1\storage\username /persistent=no
| net use g: \\salesserver\folder\folder1 /persistent=yes
|
| now, i have inherited this setup..so i started experimenting.
| from what i know persistent=yes means that it will save the
connections
| as they are made, and it will restore them at next logon. if i
choose
| persistent=no it doesn't save the connection or subsequent
connections, but
| the existing connection will be restored at next logon.
|
| now, the problems i have are:
|
| at the start of all the scripts, all of the mapped drives are
deleted with
| net use drive_letter: /delete
|
| so they are all deleted.
|
| then below that they are remapped:
|
| net use drive_letter: \\server\share /persistent=no except for the
users home
| directory (mapped my documents directory)
|
| so mid-day afternoon, dries start unmapping...not much i can think
of doing..
| anyone got any insights...
|
| small, and slightly dumb problem...very annoying..
|
| tia
| bernard
|
|
|
| --
|
 

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