Windows Server

Some time we will be having requirement to convert SID to Group/User Name or Group/User Name to SID. Here I will show you simple way to do that using PowerShell. How to Convert Group/User Name to SID: Syntax:   $Name = “Group or User Name”   (New-Object System.Security.Principal.NTAccount($Name)).Translate([System.Security.Principal.SecurityIdentifier]).value Example: $Name = “Trace-Restriction”  (New-Object System.Security.Principal.NTAccount($Name)).Translate([System.Security.Principal.SecurityIdentifier]).value   How to Convert…

Continue reading How to Convert SID to User Name using PowerShell