Posted On March 31, 2019

How to generate a list of currently active users on the domain along with their PC names

kimconnect 0 comments
blog.KimConnect.com >> Windows >> How to generate a list of currently active users on the domain along with their PC names
There's a free tool that would enable an administrator view the current active accounts within the domain by specifying a targeted machine name to query its live sessions. One would install a utility package called Systernals to include an executable called "psloggedin.exe." An example usage for such command is shown below:

Command:
psloggedon \\{file_server_name}

Usage: psloggedon [-l] [-x] [\\computername]
or psloggedon [username]
-l Show only local logons
-x Don't show logon times

Result:
PsLoggedon v1.34 - See who's logged on
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Users logged on locally:
DOMAIN1\user1

Users logged on via resource shares:
PC1\user1
PC2\user2
PC3\user3
PC4\user4
PC5\user5
PC6\user6
PC7\user7
PC8\user8

Please note that we have chosen to query the {file_server_name} instead of a domain controller or workstation because file servers are most likely to have active sessions, especially if users home folders are specified to point toward the file server in active directory. In the example above, we can easily determine who has console, physical access to the server. At the same time, we can tell which user is using certain computers by names.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Run Windows Commands Remotely

# RPC WMIC /node:SERVER1 process call create 'powershell.exe' # WinRM winrs -r:SERVER1 powershell.exe # Systernals psexec //SERVER1 powershell.exe

Common Windows Maintenance using PowerShell

# Install Windows Features:Install-WindowsFeature SNMP-Service -IncludeManagementToolsInstall-WindowsFeature -name Telnet-Client Install-Module Posh-SSH -Force# Disable Service:sc config "SERVICE_NAME"…

Windows Update Error

Error Message: There were some problems installing updates, but we'll try again later. If you…