Translate BUILTIN to domain name



Hello group

I'm trying to list the users and groups who has read access to a file.

I use .NET 2.0 and FileInfo.GetAccessControl().GetAccessRules(...) and then
loop through the FileSystemAccessRule objects. Using these objects, it is
easy to use rule.IdentityReference.Translate(typeof(NTAccount)) to get the
NTAccount object.

I have noticed that some of the NTAccounts can belong to BUILTIN domains,
e.g. BUILTIN\Users. I need to translate this BUILTIN domain name to an
actual computer or domain name. Just like it is done when I click on the
Security tab of the file property dialog.

If it is on my local computer, I guess that I sould just translate it into
the local computer name. However, what should I do if it is on a remote
computer? If the remote computer is a Domain controller, it looks as if I
should translate it to <DOMAIN>\Users instead of <COMPUTERNAME>\Users.

My problem is, that i don't know if the file is a local file or on a remote
computer. And if I could fint out if it is a local or remote file, how do I
find out if it is on the domain controller?

If this is the wrong group to ask, then please let me know.

Thank you for your help

Regards
Anders


.



Relevant Pages

  • RE: Translate BUILTIN to domain name
    ... If you log on to local computer, they will have value computer name. ... If it is on my local computer, I guess that I sould just translate it into ... If the remote computer is a Domain controller, ...
    (microsoft.public.dotnet.security)
  • Re: Error ID 7023
    ... The local computer may not have the necessary registry information or message ... DLL files to display messages from a remote computer. ...
    (microsoft.public.windows.server.general)
  • Re: Remote Assistance Ticket expires too soon
    ... This page has the information to extend the invitation time out to 99 days. ... Its a group policy setting... ... necessary to have someone at the remote computer and another operator at the ... Both want to see whats going on on the local computer at the ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Excessive entries in Event Viewer!
    ... remote desktop, saved the application log into a file, and i find the ... The local computer may not have the necessary registry ... information or message DLL files to display messages from a remote ... You may be able to use the /AUXSOURCE= flag to retrieve this ...
    (microsoft.public.windows.server.general)
  • Re: Excessive entries in Event Viewer!
    ... remote desktop, saved the application log into a file, and i find the ... The local computer may not have the necessary registry ... information or message DLL files to display messages from a remote ... You may be able to use the /AUXSOURCE= flag to retrieve this ...
    (microsoft.public.windows.server.general)

Loading