/// <summary>
/// Obtient un objet <see cref="SecurityIdentifier"/> à partir d'un nom de compte.
/// </summary>
/// <param name="AccountName">Nom de compte.</param>
/// <returns></returns>
public static SecurityIdentifier GetSidFromAccountName(string AccountName)
{
NTAccount na = new NTAccount(AccountName);
return (SecurityIdentifier)na.Translate(typeof(SecurityIdentifier));
}