Page 1 of 1

Determining S-1-5-32-500 account

Posted: Wed Nov 01, 2006 3:46 pm
by mervinpearce
I would like to determine the wkAdmin account (Administrator) even if it has been renamed. Is it possible with madSecurity?

Posted: Thu Nov 02, 2006 8:49 am
by madshi
Sure. It's as easy as this:

Code: Select all

function GetAdminName : string;
begin
  result := Account('S-1-5-32-500').Name;
end;
But please note that the "32" in the SID is only valid for your domain. It might be different for another domain.