How to add a mapped drive to desktop using VB script.
Posted on 2006-07-18
I am using the VB script below to map a network drive at login, but I would also like to place this same drive onto the users terminal desktop at login. Any ideas would be greatly appreciated.
Dim strDriveLetter, strRemotePath
strDriveLetter = "k:"
strRemotePath = "\\2kserver\fhhs"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath