List User’s Mapped Network Drives

When run against a user session, it will report the drive letter and UNC path of the user's mapped drives.
Version 1.2.4
Created on 2015-07-13
Modified on 2015-07-13
Created by josh_edwin
Downloads: 1439

The Script Copy Script Copied to clipboard
$drives = Get-WmiObject -Class Win32_MappedLogicalDisk | select @{Name="Drive";Expression={$_.Name}}, @{Name="UNC Share";Expression={$_.ProviderName}}

if ($drives -ne $null) {Write-Output $drives | ft -AutoSize}
if ($drives -eq $null) {Write-Output "No mapped drives present in this user's session."}