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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Full Name Environment Variable??

Status
Not open for further replies.

TinRam

MIS
Jan 2, 2001
99
Hello...

Everybody knows the %username% Environment Variable in Windows, it produces the user's logon name. I am in need of a variable that would produce the users full name, for example John Smith. How can this be done? Can I put something in the logon script that populates such a variable?

When you hit ctr-alt-delete your logon name and full name are displayed so this info must be available somwhere.

 
dsget user -display will give you the name you are looking for. You might have to use it in combo with dsquery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top