Groups | Blog | Home
all groups > dotnet interop > march 2005 >

dotnet interop : find 'Administrator' user


Eugene
3/14/2005 8:43:06 AM
Is there a way to find 'Administrator' built-in user name?

I do not want to assume and hard code 'Administrator' because for example,
on Spanish Windows XP it will be 'Administrador'.

I need this name so that I can use 'CreateProcessWithLogon' API.

Thank you,

Sean Hederman
3/14/2005 11:21:10 PM
As I recall, the Administrator login has it's own SID, no matter what
environment it's running in. Can't recall which SID it is though, off the
top of my head.

[quoted text, click to view]

AddThis Social Bookmark Button