Score:-1

How to find what user is logged into a computer in Active Directory? Windows Server 2022

in flag

Is there a way in Active Directory to query a Computer object to find the last user who logged in? I have a couple of computers that are not active and I would like to locate them or username know.

Score:2
cn flag

You could query the event log and filter for the machine names.

The events are kept per-DC, so in a multi DC setup you will have to grep trough every DCs logs. Check your retention policy, so that you don't miss events which are over your size/date limit.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.