Windows – List mapped network drives from the command line to text file

command linenetworkingwindows

Is there a command that can be used from the command line to output a list of the mapped network drives on the local system and their location on the network to a text file?

This will only be used on Windows-based systems running Windows XP.

Best Answer

net use > mapped_drives.txt should dump a list of mapped drives to the text file mapped_drives.txt

alt text

Although I tested this on Windows 7, Microsoft says net use will work on Windows XP