gholton
asked on
user logon name in vbscript
Trying to get only the user logon name within a vbscript... help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
We give that a shot and see if we get better results...
Glenn
We give that a shot and see if we get better results...
Glenn
ASKER
Thanks for you help mdiglio, We are have solved are problem and moved on. We ended up simply creating directories with the users full name and mapping our drive to that directory using the USERNAME variable.... forgetting about having it just be the users first name.
It works and all users report no problems.
We are closing out this question.
Best regards..
Glenn Holton
It works and all users report no problems.
We are closing out this question.
Best regards..
Glenn Holton
Glad you got it working!
ASKER
we are using a logon script to do this and using the code below only gives us the full name
Set wshNetwork = CreateObject("WScript.Netw
Set ADSysInfo = CreateObject("ADSystemInfo
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
If InStr(strGroups, LABELS_GROUP) Then
wshNetwork.MapNetworkDrive
End If
Please help