List Mapped Network Drives and Their Share Paths
Show every mapped network drive letter and the UNC path it points to using Win32_MappedLogicalDisk.
01Command
$ Get-CimInstance Win32_MappedLogicalDisk | Select-Object Name, ProviderName02What it does
Mapped drives like Z: look like normal disks in Explorer but hide which server share they actually point to. File Explorer's This PC hides the full path unless you check properties, and net use only covers your own session. Win32_MappedLogicalDisk lists each mapping with its drive letter in Name and the underlying UNC share in ProviderName, which is exactly what you need when documenting a setup or fixing a broken mapping.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Win32_MappedLogicalDisk class | Microsoft LearnEvidence: Win32_MappedLogicalDisk represents network drive mappings, exposing the local Name (e.g. Z:) and ProviderName (the UNC share path).
- Get-CimInstance cmdlet | Microsoft LearnEvidence: Get-CimInstance retrieves WMI instances such as Win32_MappedLogicalDisk.
Last verified: 2026-09-19 · Category: Files & Folders
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.
Robocopy is Windows' built-in robust file copier: use /MIR to keep a destination folder as an exact one-way mirror of a source, resumable and restartable.