Resolving Mapped Drive

by Sep 19, 2018

Ever wanted to know the original URL behind network drives? Here is an easy PowerShell way:

# make sure the below drive is a mapped network drive
# on your computer
$mappedDrive = 'z'
 
 
$result = Get-PSDrive -Name $mappedDrive | 
    Select-Object -ExpandProperty DisplayRoot
 
"$mappedDrive -> $result"

Twitter This Tip! ReTweet this Tip!