Becks25Not
Programmer
Hi All,
Is there a way to get a list of all the users who have logged onto a machine? I tried System.Management.SelectQuery("Win32_UserAccount") but it gave me a list of all users in all of AD, not just the local machine. I also need to determine the last time they logged in.
Any ideas?
Thanks ~ Becks
Is there a way to get a list of all the users who have logged onto a machine? I tried System.Management.SelectQuery("Win32_UserAccount") but it gave me a list of all users in all of AD, not just the local machine. I also need to determine the last time they logged in.
Any ideas?
Thanks ~ Becks