Hello,
I am looking to return all the usernames and SIDs of users on a computer or network.
Has anyone got any idea how to do this?
I know I can return the SID of the current user using the code below:
System.Security.Principal.WindowsIdentity.GetCurrent().User.ToString
Any help with this would be great!
I do not mind if the results are returned to a textbox or listview.
Regards,
Luke