PowerShell – Convert SID to username

Yesterday I posted aboutĀ getting the SID of a user via its username.
Today, I’m posting the reverse.

Here’s a PowerShell snippet to convert a SID to its corresponding username:

Leave a Reply

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