PowerShell

Turning SIDs into Real Names using PowerShell

  PowerTip of the Day, from PowerShell.com: Sometimes, you’d like to turn security identifiers (SIDs) into real names. Here is a function that can do this for you: 1: function SID2Name($sid){ 2:  3: $objSID = New-Object System.Security.Principal.SecurityIdentifier($sid) 4:  5: try { 6:  7: $objUser = $objSID.Translate( [System.Security.Principal.NTAccount]) 8:  9: $objUser.Value 10:  11: } catch {… Continue reading Turning SIDs into Real Names using PowerShell