Getting the user name for a given security identifier (SID)
Two lines of Powershell code: PS C:\> $osid=New-Object system.security.principal.securityidentifier("S-1-5-21-593069383-354653268-975305329-98179") PS C:\> Write-Host $osid.translate() Output is in the form of <DOMAIN>\<USERID> ie. NODDYLAND\admin-bike01 Reference: Microsoft: Well-known security identifiers in Windows operating…