Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get users information(HomeDirectory,Fullname,Description) 1

Status
Not open for further replies.

thorntonb

Technical User
Nov 8, 2002
55
IE
Is there anyway of getting information about users HomeDirectory,Fullname and Description using VBScript??

Brian B-)
 
strUser = Inputbox ("Enter User Name")
strDomain = Inputbox ("Enter Domain")
Dim User
Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")
msgbox (User.HomeDirectory)
msgbox (User.Fullname)
msgbox (User.Description)

Should get you started.
-Sunny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top