|
-
September 11th, 2020, 04:13 PM
#10
Re: Obtaining LogonDomain for logged on Windows Active Directory user
As per the documentation for GetComputerNameEx "The names are established at system startup, when the system reads them from the registry." Therefore the name is the same regardless of whether the user logged in using a WindowsAccount, local account or normal Domain account.
I have tried the function nevertheless (with all the 8 options for "Name Type") and it would either return the computer name, domain name or combination of computer and domain name.
Obviously what I need is possible because Sysinternals is able to provide this information with BGInfo. I have not seen anyone else able to do it.
Any other ideas?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|