Tag Archives: WScript.Network

New article on PowerShell Magazine: Enumerating mapped network drives using WScript.Network

The Wscript.Network COM object offers a variety of useful methods, in a previous tip I showed how to map a network drive and how to remove a mapped network drive. Today the EnumNetworkDrives method will be used to enumerate the currently mapped network drives. A tip on how to enumerate mapped network drives using the EnumNetworkDrives method is available on PowerShell Magazine:

http://www.powershellmagazine.com/2014/07/23/pstip-enumerating-mapped-network-drives-using-wscript-network/

For this article I have written a script that converts the output from this method into PowerShell objects. The script, Get-MappedDrive, is available in the Technet Script Gallery:
http://gallery.technet.microsoft.com/Get-MappedDrive-Get-list-f454b048

Share

New article on PowerShell Magazine: Create mapped network drive using WScript.Network

In PowerShell there are several methods available to created mapped drives, one of these is by using the MapNetworkDrive method of Wscript.Network COM object. A tip on how to map a drive using this method which also includes how to remove the mapped folder is available on PowerShell Magazine:

http://www.powershellmagazine.com/2014/07/21/pstip-create-mapped-network-drive-using-wscript-network/

This article and many other articles I have written for other websites are available in the External Articles section of this blog.

Share