Script base para conseguir localizar o usuário no Active Directory
Ver user via SID
$objSID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-21-3436325932-4212626272-1092615713-74701")
$objUser = $objSID.Translate( [System.Security.Principal.NTAccount])
$objUser.Value
--------------------------------------------------------------------------------------------------
Ver SID do user
$objUser = New-Object System.Security.Principal.NTAccount(“domain”, “user”)
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value