Link to home
Start Free TrialLog in
Avatar of rhouston0872
rhouston0872

asked on

Logon Scripts and local device names

I run a Windows 2000 Domain and recently I altered the common logon script to point a drive letter to a different share.  Everythings seems to be running smoothly, but I am having problems with one user.  I get the following error each time the user logs on

"The Local Device Name has remembered a connection to another network resource"

I've researched the issue and it would appear as though the user had manually mapped a drive with the same drive letter (??) and chose to have it restored (persistent) at restart.  Nonetheless it's prohibiting the machine to connecting to the new share specified in the logon script.  

How can I resolve the issue?
Avatar of JMontaine
JMontaine

Have you tried right clicking and hit disconnect?
Avatar of Lee W, MVP
Resolve it through the script:

If exist x:\ net use x: /delete
net use x: \\server\share

Where x is the drive letter you want to use.

The first line will always disconnect the existing connection and the next line will reconnect it to the share you want.
This assumes your login script is a batch script.  It's noteably more involved if you use VBScript - can't really help on that at the moment.
Avatar of rhouston0872

ASKER

I have the ability to disconnect it, but I'm pretty sure it will reconnect when the user restarts.  I'll have to look at that.

Unfortunately, our login script is a .vbs so I'm not sure the script above will be useful.
ASKER CERTIFIED SOLUTION
Avatar of JMontaine
JMontaine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could always set it up as a batch file that calls your regular VBS script.