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

By | August 3, 2015

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

  • 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.


Leave a Reply

Your email address will not be published.