BGInfo - Visual Basic Script to Show Mapped Drives
Hello all.
I am trying to use BGInfo to show mapped drives when logging in to a server.
With the limited amount of options we have, and no ability to utilize PowerShell, I came up with these two:
Set WshNetwork = CreateObject("WScript.Network")
Set oDrives = WshNetwork.EnumNetworkDrives
For i = 0 to oDrives.Count - 1 Step 2
Echo oDrives.Item(i) & " = " & oDrives.Item(i+1)
Next
That doesn't pop up any validation errors in BGInfo, but also does not show any of the following mapped or redirected drives from my laptop:
What am I doing wrong? I am trying to show mapped and redirected drives in this:
Thank you, and I appreciate any and all help to get this done.