Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Users on a Machine

Status
Not open for further replies.

Becks25Not

Programmer
Jun 23, 2004
176
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top