Avatar of Tek Info
Tek Info
 asked on

Check who is logged into specific IP addresses

I would like to check which user(s) are logged into a specific IP address  (internally) on a Windows network.
How can I achieve this via a script or command line?
Windows OSNetworkingScripting Languages

Avatar of undefined
Last Comment
Tek Info

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
William Fulks

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
arnold

To have this information handy, you have to proactively collect it.

You can use a user base GPO that runs a login script
echo "On %date% at %time%, %USERNAME% loged into %COMPUTERNAME% on %sessionname% authorized against %LOGONSERVER^" >>\\server\sharename\recordkeeping_file.

Now on your DHCP server, you have to keep a record of which IP was allocated to which system.

The above is a simple example, you can use vbscript, powershell, etc. to record these in a DB.
You can use SNMP to generate login/logout events as well as IP...
Tek Info

ASKER
Thanks William.
Your help has saved me hundreds of hours of internet surfing.
fblack61