c# Programming Glossary: logonid
how to get logged on users with their status on remote machine http://stackoverflow.com/questions/14212155/how-to-get-logged-on-users-with-their-status-on-remote-machine code which can be a start but I would like to couple the LogonId to a username and to see its status string fqdn set ConnectionOptions.. ManagementObject os in results try if os.GetPropertyValue LogonId .ToString null os.GetPropertyValue LogonId .ToString returnVal.. LogonId .ToString null os.GetPropertyValue LogonId .ToString returnVal true catch NullReferenceException continue..
Get User SID From Logon ID (Windows XP and Up) http://stackoverflow.com/questions/2727393/get-user-sid-from-logon-id-windows-xp-and-up on and one of the properties I get from that query is a LogonId. To figure out which registry hive I need to access now I need.. new RelatedObjectQuery associators of Win32_LogonSession.LogonId ' logonID ' WHERE AssocClass Win32_LoggedOnUser Role Dependent.. in logonSessions string logonID logonSession LogonId .ToString Console.WriteLine 0 type 1 logonID logonSession LogonType..
How to get a Unique ID for the current user's logon session in windows - c# http://stackoverflow.com/questions/6061143/how-to-get-a-unique-id-for-the-current-users-logon-session-in-windows-c-sharp the same user in the same session will have different LogonId copmaring to non elevated one but will have the same SessionId... map network drives. Since Vista a process with one token LogonId will not see network dirves mapped with another LogonId even.. LogonId will not see network dirves mapped with another LogonId even if processes are running in the same session and under..
|