That’s the simplest and most common command. It will show:
net use | findstr /R "^[A-Z]:"
@echo off
For more modern Windows environments (Windows 10 and 11), PowerShell offers more robust cmdlets for drive management: Net use | Microsoft Learn
You can run a PowerShell command inside the standard Command Prompt to get a cleaner list of just the Drive Letter and UNC Path. cmd network drive list
This displays a list of all currently connected network drives, their status, and the remote path they are connected to.
If you need more specific details or alternative views, you can use these variations: That’s the simplest and most common command
net use
:: Using wmic wmic netuse get drive,localname cmd network drive list