Link to home
Start Free TrialLog in
Avatar of Eric
EricFlag for United States of America

asked on

cannot disconnect mapped "disconnected" network drives

I have 2003 servers running terminal services.
as a domain admin I am trying to disconnect the mapped drives because our script is failing to do so. (we updated a drive path)
if i type net use * /delete y
it claims there is nothing to delete.  However in "my comptuer" it shows 2 drives as disconnected.  Clicking on them returns: the location is unavailable.

If i right clik on the drive and say disconnect it says "the network connection could not be found"

I noticed XP seems to work with my scripts.  I dont know what windows 2003 is doing but I hate it. Please help.
Avatar of peea
peea

It seems you have persistent network connections. Please try the following command before invoking NET USE * /DELETE /Y

NET USE /PERSISTENT:NO
Avatar of Eric

ASKER

I tried that already :(

===============
C:\>net use * /delete /y
There are no entries in the list.


C:\>net use
New connections will not be remembered.

There are no entries in the list.
Just clarify, there are two commands, in this order:

NET USE /PERSISTENT:NO

NET USE * /DELETE /Y
Avatar of Eric

ASKER

yes.

I tried every way imaginable.

Can you see any existing connections (even disconnected) under Computer Management | System Tools | Shared Folders? And any sessions there, and open files??
Avatar of Eric

ASKER

that only shows locally shared folders.  I am not doing this on a file server.
But no nothing is in there as open. no reference to any network folders. i did check.
> that only shows locally shared folders.

Sorry, I mean Seesions, which shows your current connections to other computers.
Restart your Terminal Services Server
Avatar of Eric

ASKER

just one session.  not connecting to any of shares in question.  looks like a print server connection
Avatar of Eric

ASKER

Grim:
cant.  maybe later tonight.  Any specific reasons behind that or just because its good practice?
ASKER CERTIFIED SOLUTION
Avatar of grimace606
grimace606
Flag of United States of America image

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
Avatar of Eric

ASKER

I have a large citrix farm and only reboot them once a month unless there is an issue. (rare)

and that is for windows updates.

I saw 1 comment about some regkey something/mountpoint2/  blah blah
that mentioned rebooting is required to remove them.  but there was  no detail.

We have way to many users in all time zones. Its not possible to just reboot servers frequently.

I am going to try this tonight.  I was just wondering if you were guessing / common practice or knew something about this issue.

Thanks
Avatar of Eric

ASKER

Reboot was part of the resolution.
something to do  with caching of network shares or something.