Powershell/Private/Get-SecurityIdentifier.ps1
function Get-SecurityIdentifier ([string]$User) { $objUser = New-Object System.Security.Principal.NTAccount($User) $strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier]) $strSID.Value } |