How to retrieve Remote desktop user domain name on Win2008 server
Hi,
How can I do this??
Suppose I have Win2008server and many users from defferent domains log in, so every user has its own session.
How can I obtain from the session the domain name of the user who logged in to server??
Thank you.
Re: How to retrieve Remote desktop user domain name on Win2008 server
Did you try LsaEnumerateLogonSessions (http://msdn.microsoft.com/en-us/libr...5(VS.85).aspx) and for each session call LsaGetLogonSessionData(http://msdn.microsoft.com/en-us/libr...v=vs.85).aspx). It populates a SECURITY_LOGON_SESSION_DATA what should contain the domain name too.