Skip to content

Instantly share code, notes, and snippets.

View soulhakr's full-sized avatar

Dave soulhakr

View GitHub Profile
@soulhakr
soulhakr / ListMappedNetworkDrives.vbs
Last active May 10, 2022 19:24
[List Mapped Network Drives (VBScript)] #windows #wsh #vbscript #utility
''
' List Mapped Network Drives
' Copyright 2022 David Edwards <[email protected]>
''
On Error Resume Next
Const strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")