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

Leave a Reply