I am trying to write VBscript code to find a users homepath and the only information I have is there logonname, for example this is what I have so far;
Dim objSysInfo, objUser
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" + "username")
So if I have uses logon name of JAH I want to find there homepath for example "\\server\profiles\jah"
All the LDAP search seem to need the full CN user name to work..