Diable auto reconnect of mapped drives

  • Thread starter Thread starter Robert Dobson
  • Start date Start date
R

Robert Dobson

Hi, just wondering if there is a way to fix my problem.
Symptom: Using net use in a batch file to map to a
network share when a user launches an application through
Terminal Services.
The next person to log in with that account has the drive
automatically try to re-connect.
We pass the authentication information for the share in
the batch file so when the drives attempts to reconnect,
it asks for user credentials which we do not disclose to
the users.

Is there a registry setting to diable this behaviour in
Windows?

Thanks, Any help is greatly appreciated
 
In said:
Hi, just wondering if there is a way to fix my problem.
Symptom: Using net use in a batch file to map to a
network share when a user launches an application through
Terminal Services.
The next person to log in with that account has the drive
automatically try to re-connect.
We pass the authentication information for the share in
the batch file so when the drives attempts to reconnect,
it asks for user credentials which we do not disclose to
the users.

Is there a registry setting to diable this behaviour in
Windows?

Why would two users not each be using their own account in the first
place? Or is it just they are running the same "dynamic" batch file?
And users _may_ be able to read the batchfile and recover the account
info. and password...
Anyway...

Look at NET
net use /help or net help net use
NET USE [/PERSISTENT:{YES | NO}]

and net use * /delete
 
Back
Top