I wrote a VB script to map an M drive for each user. I have it in a gpo as a login script.
Option Explicit
On Error Resume Next
Dim objMapThis
Dim strAPDrive, strAPPath
strAPDrive = "M:"
strAPPath = "\\servername\wrmc-ap"
Set objMapThis = WScript.CreateObject("WScript.Network")
objMapThis.MapNetworkDrive strAPDrive, strAPPath
For reasons unknown it keeps mapping M:\users and I don't know why I have in AD a profile which maps an N drive to a user on the same server but its \\xxxx\users\username..
Would I be better off just using Net use?
Our community of experts have been thoroughly vetted for their expertise and industry experience.