Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Need to disconnect a rogue remote disk in Win NT.

Posted on 2003-12-08
3
454 Views
Last Modified: 2013-12-28
I just set up a new job in Task scheduler that runs a batchfile which Maps a "nework drive" and copys data from the server to the mapped drive. This is using the net use command, and is actually mapping a drive to a share point on the same server (a subst command may have been a better way to go). The job worked the first time, but has failed mapping the drive since the first one. I checked under My Computer and the P: drive that I was mapping looks like a local drive and has the disk type of "Remote Disk". I can't figure out how to remove it. Has anybody seen "Remote Disk" before. When I type net use from a cmd prmpt it doesnt show up and there is no option to disconnect it.
0
Comment
Question by:nickbuol
  • 2
3 Comments
 

Author Comment

by:nickbuol
ID: 9897271
There is a rare problem whereby, in the list of network connections to remote disks, one or more of them mysteriously is classified as a "Remote Disk", rather than the usual "Network Connection".

In other words, "Remote Disk" seems to be like the other usual and familiar options of
     Floppy Disk
     Local Disk
     Removable Disk
     CD-ROM disk
and not like
     Network Connection
any more. Namely, you can't delete it.

It still works properly to access the remote disk, you just can't delete it by any mechanism.

The reason for this turns out to be simple and the solution easy.

The reason is that someone has run a command such as
net use T: \\xxxxxxx\xxxx /p:y
as a scheduled job.

When the scheduled job ran, it assigned drive {T:} to the remote disk \\xxxxxxx\xxxx as expected. But it assigned it while running in the background. So {T:} belongs to the background.

Now you log on to the workstation and you can see {T:} as a network connection. It looks like a normal remote disk that you could delete. But if you run the command NET USE, you will see that it is unavailable. That doesn't mean unavailable to use - you can access files via {T:} just fine. Instead, it means it is unavailable for you to change - it doesn't belong to you.

So you decide to change it anyway. You issue the DOS command
     NET USE T: /DELETE
(or the equivalent using the GUI interface via My Computer). At this point, the "Network Connection" words disappear and you now see "Remote Disk". (You might have to refresh the display to see this)

Now you try feverishly to delete {T:}, but there is no option, just as there is no option for deleting {C:} (a Local Disk) or the floppy or anything else that is permanent. It appears that {T:} has been promoted to a permanent fixture.

The solution is to quit trying to delete it via your login session but instead schedule a job to do that. For example,
AT 3:00 /INTERACTIVE NET USE T: /DELETE.

When the job gets created, run it immediately via the scheduler GUI and refresh your view of My Computer. {T:} should now be gone. (remember to remove the scheduled job)

If {T:} stubbornly remains, you may need to reboot. If reboot is inconvenient, you can go to Services and stop the Workstation service (this is the job that was holding the {T:} and I don't know why it doesn't always release it nicely)

If you do that, keep a list of other services that are stopped. Probably they are Alerter, Computer Browser, Messenger, and Net Logon.

After restarting the Workstation service, start the others too.
0
 

Author Comment

by:nickbuol
ID: 9897273
Found my own answer.
0
 

Accepted Solution

by:
Adam_Cahill earned 250 total points
ID: 9899386
Externally assisted nickbuol in finding above solution.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
An article on effective troubleshooting
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question