On a local network I'm using this code :
string user = System.IO.File.GetAccessControl(path).GetOwner(typeof(System.Security.Principal.NTAccount)).ToString();
This returns : "BUILTIN\Administrators" Not The Session UserName which created the file.
As I understand the UserName is part of the group "BUILTIN\Administrators".
So is there anyway to retrieve the session UserName ?
Note : I can use ActiveDirectory if this can help me out.