Posts tagged with PowerShell v3

Unmapping Network Drives

June 27th, 2015 by and tagged , , , , ,

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 »

PowerShell v3 – Using PSDrive to Replace Net Use

August 1st, 2012 by and tagged , ,

I routinely have to map drives across domain boundaries, or to/from non-domain and domain machines. In the old days, I used NET USE commands, which were OK, but there were some issues. Besides, it’s time to move to away from legacy commands such as NET. PowerShell v3 includes an updated set of PSDrive cmdlets (Get, […]

Posted in $Profile, PowerShell, WMI | Comments Off on PowerShell v3 – Using PSDrive to Replace Net Use