We recently had a situation in which all we had was a user’s SID and we needed to figure out exactly who that was before making a change. Fortunately, the command to query Active Directory and return user information is quite easy:

Get-ADUser -Filter {SID -like "{SID}"}

For example:

Get-ADUser -Filter {SID -like "S-1-5-21-122221945-583333252-835566217-89123"}

returned Joe Lole as our owner of the SID

powershell command to convert display user name from SID GUID

Note that you need to do this on a server with Active Directory Users and Computers (ADUC) installed or you will receive error:

Get-ADUser : The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program.



1 Comment

SOLVED: Everything You Need To Know About the Windows Recycle Bin, but Don’t – Where it is, Profile Size & Deleting – Up & Running Technologies, Tech How To's · November 6, 2023 at 2:15 pm

[…] username and Active Directory using a simple command line we have details of and a screenshot of HERE. At that point you can decide if a user’s Recycle Bin is important or not and then you can […]

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *