Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

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?
0
rhouston0872
Asked:
rhouston0872
  • 3
  • 2
1 Solution
 
JMontaineCommented:
Have you tried right clicking and hit disconnect?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
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.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
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.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rhouston0872Author Commented:
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.
0
 
JMontaineCommented:
then Just type

net use <drive letter you want gone> /delete

at the command prompt. that should clear it.

basicly what leew said above but just it's not in a script
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
You could always set it up as a batch file that calls your regular VBS script.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now