Unmapping Network Drives
June 27th, 2015 by Charlie Russel and tagged Get-WmiObject, PowerShell, PowerShell v3, Remove-PSDrive, Remove-SmbMapping, WMI
Unmapping network drives with PowerShell should be easy, and it is, but with some caveats. If you always create your network drive mappings with New-PSDrive, then it’s easy to unmap them with Remove-PSDrive. But if some of them are created with Group Policy, some of them with the legacy “net use” commands, some of them […]
Posted in PowerShell, WMI | 4 Comments »