Every so often I want figure out the UNC path to my mapped network drives in Windows. Usually this happens when another user needs to access a file on one of my network drives but doesn’t have it mapped on their login. I always end up googling this and getting a bunch of code-related answers (ie. how to do this in VBScript or .Net). I just wanted a simple way to list them and from looking at the help for the “net” command, nothing popped out at me (except of course for “net share”, but we’ll get to that). It turns out that the way to find them is quite simple.
- Open the Run window (Start–>Run or Windows Key + R)
- Type “cmd” (without quotes) and hit enter
- Type “net use” and hit enter
That’s it! It will output a list of your mapped network drives and their UNC paths.
Easy.
Now, as I mentioned before, I had thought that “net share” would show that information but it actually lists all your shared folders along with their local paths.
Both of these commands can be very useful for setting up and managing network shares, so I thought I’d make a note of them here for future reference.