Another Windows Issue - howto disconnect mapped drives via command

When I put this together, I thought it was going to be all about Gentoo Linux, but ran into another Windows issue today.. thought I'd share.

Out of the blue today, when opening Windows Explorer, it would hang. Checking the Event Viewer I would get the following:

Event Type: Error
Event Source: Application Hang
Event Category: (101)
Event ID: 1002
Date: 10/5/2007
Time: 6:12:42 PM
User: N/A
Computer: MYCOMP
Description:
Hanging application explorer.exe, version 6.0.2900.3156, hang module hungapp, version 0.0.0.0, hang address 0x00000000.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74   Applicat
0008: 69 6f 6e 20 48 61 6e 67   ion Hang
0010: 20 20 65 78 70 6c 6f 72     explor
0018: 65 72 2e 65 78 65 20 36   er.exe 6
0020: 2e 30 2e 32 39 30 30 2e   .0.2900.
0028: 33 31 35 36 20 69 6e 20   3156 in
0030: 68 75 6e 67 61 70 70 20   hungapp
0038: 30 2e 30 2e 30 2e 30 20   0.0.0.0
0040: 61 74 20 6f 66 66 73 65   at offse
0048: 74 20 30 30 30 30 30 30   t 000000
0050: 30 30                     00     

Smells like mapped drive issue. So I thought disconnecting mapped drives would be a good place to start, but since I was unable to view Explorer, command line was the key.

To see what drives you have mapped from dos box do the following:

net use

To disconnect a mapped drive:

net use /delete v:

'V:' is an example drive I had mapped. Doing this I isolated the drive that was causing me the problem, which was a linux file server. Started digging into that problem and discovered that my gigabit switch was dropping packets on all ports, so had to swap it out.