Solved

Need to disconnect a rogue remote disk in Win NT.

Posted on 2003-12-08
3
451 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now