Solved

Finding AD username of AD GUIDS

Posted on 2012-03-11
4
276 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 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Azure AD / OAUTH 2 39
How do I convert from bytes to TB 4 26
run powershell script endlessly 3 24
Get-PSDrive results 2 17
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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