query to get names from user ID

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
SMAndy
Posts: 3
Joined: Thu Jun 14, 2012 2:51 am

query to get names from user ID

Post by SMAndy » Thu Jun 14, 2012 2:51 am

Hi All.I have a big list of user ID's, and for us, a user name is just a number given to them, so i can't get any meaningful information about them from just that. Is there any command i can use to query the user ID to give me a name? I think something like dsquery can do it, but i'm not sure.For reference, i'll have a text file with the list of user ID's in it, ready to go.Thanks for any help.

User avatar
SMAndy
Posts: 3
Joined: Thu Jun 14, 2012 2:51 am

query to get names from user ID

Post by SMAndy » Thu Jun 14, 2012 2:51 am

Hi All.I have a big list of user ID's, and for us, a user name is just a number given to them, so i can't get any meaningful information about them from just that. Is there any command i can use to query the user ID to give me a name? I think something like dsquery can do it, but i'm not sure.For reference, i'll have a text file with the list of user ID's in it, ready to go.Thanks for any help.

User avatar
jvierra
Posts: 12895
Joined: Tue May 22, 2007 9:57 am
Contact:

query to get names from user ID

Post by jvierra » Thu Jun 14, 2012 3:43 am

type: dsget <userid>

dsget /?

Follow the instructions.

Locked