-
October 9th, 2012, 03:30 AM
#1
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.
-
October 10th, 2012, 11:59 AM
#2
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.
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
|