Hi,
I am using below code to get user login name. I was wondering if there is a way to get the full username not just the log in name
I am using below code to get user login name. I was wondering if there is a way to get the full username not just the log in name
Code:
`Sub GetUserName_Environ()
Dim ObjWshNw As Object
Set ObjWshNw = CreateObject("WScript.Network")
MsgBox ObjWshNw.UserName
MsgBox ObjWshNw.ComputerName
MsgBox ObjWshNw.UserDomain
End Sub