So, for the nth time, I found myself wondering “what name did I use to map this network drive” in Windows Explorer…
A quick Google search dug this up, so, just to document it for my own (future) reference:
wmic netuse where LocalName="Z:" get UserName /value
Where “Z” is the mapped drive letter in question…
2026/08/20 Update: Since Microsoft officially removed
wmicfrom Windows 11, you will have to use the alternative.

