Know the real name and surname of user logged...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know the way to know the ID name of user logged on PC, but i want to know
the real name of user Name and Surname (for example Jhon Smith) and store it
in a cells...?
Or.. if existis in wich part of dir, text file or other is stored this
information?
 
Public Function GetFullLoginName() As String
Dim Domain As String
Dim User As String
With CreateObject("Wscript.Network")
Domain = .UserDomain: User = .UserName
End With
GetFullLoginName = GetObject("WinNT://" & Domain & "/" & User &
",user").FullName
End Function



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top