Simpatie.ro - matrimoniale
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
Stefania23 pe Simpatie.ro
Femeie
24 ani
Dolj
cauta Barbat
25 - 46 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[VBS] Extract Current User Domain Information

Pagini: 1 Moderat de TRaP, TonyTzu
#1
TRaP
Moderator
Postari: 960
Save as VBS and run:


On Error Resume Next
Dim objUser
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)

msgbox "UserName: " & objSysInfo.UserName & vbcrlf & _
"FullName: " & objUser.FullName & vbcrlf & _
"Title: " & objUser.Title & vbcrlf & _
"Department: " & objUser.Department & vbcrlf & _
"Company: " & objUser.Company & vbcrlf & _
"Phone: " & objUser.telephoneNumber & vbcrlf & _
"E-mail: " & objUser.Mail


 
   
Pagini: 1  
Mergi la