>Hi All, does anyone know how to get the owner of a file resident on a Windows 2003 server ?
>
>I've tried using the FileInfo / FileSecurity / IdentityReference classes and invoking the GetOwner() method but it always returns "Builtin\Administrators"
Why do you think what it is returning is wrong? I just tested a few of them using those classes and it returned the correct owner. I verified it by going into Explorer, right-clicking on the file and selecting Properties > Security > Advanced > Owner
var fileInfo = new FileInfo (@"C:\Windows\System32\capiprovider.dll");
var fileAccessControl = fileInfo.GetAccessControl();
var identityReference = fileAccessControl.GetOwner(typeof(NTAccount));