Hi this is my first question in this awesome forum. So here goes.
I've created a VPN package for users with Windows xp with Windows 2003 server with "Connection Manager Administration Kit". I'm using a loginscript in the package that runs post-connect and it works fine. In the loginscript i'm mapping the user's homefolder like this:
Set Network = CreateObject("WScript.Network")
Set objShell = CreateObject("Shell.Application")
DriveLetter5 = "N:" '(My documents)
strNewName5 = "My Documents"
Share5 = "\\vega\users$\" & Network.username & "\My Documents"
Network.RemoveNetworkDrive DriveLetter5, True, True
Network.MapNetworkDrive DriveLetter5, Share5
objShell2.NameSpace(DriveLetter5).Self.Name = strNewName5
n.b. I stripped a couple of other things out of the script
This works fine if the user has the same Username on his home computer as he does has at work. But what can I do if the Username on the home computer is "goofy" and the username he uses at work is "peter"?
Any ideas ?