?
Solved

Finding AD username of AD GUIDS

Posted on 2012-03-11
4
Medium Priority
?
288 Views
Last Modified: 2012-09-08
Hello

I have a list of about twenty Active Directory GUIDs that I need to convert to something more user friendly, (e.g. AD username UPN, DisplayName).

I have the list of GUID's in a csv file named GUID.csv

Does anyone know of a Powershell (we have Quest) or similar that we can run to get this info?
0
Comment
Question by:neil4933
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 11

Expert Comment

by:Joe Klimis
ID: 37707533
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 37707623
There is a shortcut in adfind that can help


http://www.joeware.net/freetools/tools/adfind/index.htm

adfind -sc adguid:57572....

Would need to wrap around a batch to read from the csv


Thanks
Mike
0
 
LVL 8

Accepted Solution

by:
fundacionrts earned 2000 total points
ID: 37707661
This line returns you a list of SID, Domain and Name of accounts that are found by GUID

Get-Content test.txt | Foreach-Object {Get-WMIObject Win32_Account -Filter "sid='$_'" | Select-Object SID,Domain,Name}

Note: This line do not returns any information about guid not found...
0
 

Author Comment

by:neil4933
ID: 37707712
Thanks all

We actually do have Quest Powershell which should help.

If I look at an account, the objectGUID value is what we have in GUID.txt

How can I convert this to DisplayName?

So, I have:

i. objectGUID for a list of users and I want to know DisplayName

I guess the PS query is saying:

get-QADuser where objectGUID=*first value in csv* and return me the DisplayName value
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Let's recap what we learned from yesterday's Skyport Systems webinar.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question