Powershell Tip #14: List, add and remove network drives

By | August 3, 2015

Tip: There are several ways to work with network drives:

  • Cmdlets PSDrive
  • WScript.Network COM object
  • net.exe

The following commands create a persistent drive (the drive will still here even after logout or reboot), list and remove the drive.

Note: When providing credentials, in this example I use the IP Address as it is a workaround here.


previous-buttonnext-button

One thought on “Powershell Tip #14: List, add and remove network drives

  1. Pingback: Powershell Tip #15: Use a BrowseFolder dialog for user input | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *