Determine which AD accounts are logged onto which computers

Within a Server 2016 AD network what program, utility, or command can I run to view which Active Directory users are logged onto which computers?

If this can't be done with the native Server 2016 software utilities, power shell or command line commands, what kind of software can be purchased to do this?
IT GuyNetwork EngineerAsked:
Who is Participating?
Shaun VermaakConnect With a Mentor Technical Specialist/DeveloperCommented:
Look at the first part of this article Computer Description Update Process
NVITConnect With a Mentor Commented:
For a free utility, you can use PsLoggedOn, by Microsoft.

Here's a different method using WMIC:

Revised to show ComputerName,UserName:

@echo off

for /f "Tokens=1" %%c in ('net view /domain:"%USERDOMAIN%"^|Findstr /L /C:"\\"') do (
	for /f "delims=\" %%A in ('echo %%c') do (
		wmic.exe /node:%%A computersystem get name,username | find /v /i "username"
goto :EOF

Open in new window

The other question you had.
If you setup login/logout scripts that registers each user, date time, computer, logon server against which it authenticated, console, logout time...
Apply to the user OU, no matter what system the user logs into, you'll have the information to query as you see fit.
Which users are loggin into a system, which system a user used, duration of time
Olgierd UngehojerConnect With a Mentor Senior Network AdministratorCommented:
You can do query to eventlog.
get-eventlog "Security" | where {$_.Message -like "*Username*" -AND "Source Network Address"} | export-csv C:\SomePath
    Ajit SinghConnect With a Mentor Commented:
    Get the user profile information from the workstation itself and look for the LastAccessTime.  Here is a PowerShell script:

    Here is another logon script you can check:

    Free tool - Find out where your AD Users are logged on into:

    Additionally, you can check active directory auditing solutions like; Lepide and Manageengine to track what's going on with your environment.

    Hope this helps!
    Question has a verified solution.

    Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

    Have a better answer? Share it in a comment.

    All Courses

    From novice to tech pro — start learning today.