Determining S-1-5-32-500 account

delphi package - easy access to security apis

Determining S-1-5-32-500 account

Postby mervinpearce » Wed Nov 01, 2006 3:46 pm

I would like to determine the wkAdmin account (Administrator) even if it has been renamed. Is it possible with madSecurity?
Posts: 1
Joined: Wed Nov 01, 2006 3:43 pm

Postby madshi » Thu Nov 02, 2006 8:49 am

Sure. It's as easy as this:

Code: Select all
function GetAdminName : string;
  result := Account('S-1-5-32-500').Name;

But please note that the "32" in the SID is only valid for your domain. It might be different for another domain.
Site Admin
Posts: 10021
Joined: Sun Mar 21, 2004 5:25 pm

Return to madSecurity

Who is online

Users browsing this forum: No registered users and 1 guest