WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get Logged In User

 Keywords: Get Determine Logged In User Logon Active Directory AD

Question:

I have an AD structure with 3500 User-Accounts and I would like to know for one specific user (generic account for service) on which system it was logged on. IS there any easy way to accomplish this in WinBatch?

Answer:

No, not in any quick & easy way. You'd have to poll each system to determine who is logged on, then select from that information the names of workstations that had a specific user account logged on to them. This is a time consuming task unless you can do the polling in parallel in multiple instances of your script.

AD does not store this information, so there's no way to read from AD and find out when & where users have logged on. That type of data is "transactional" data, and that's not the kind of data that AD is suited for storing & maintaining in regular domain partitions.

If you wanted to, you could write a little compled script that runs at logon time on every single workstation in your environment, and it reports back to a central location the workstation name, the username & the time at which a logon occurred. When the user logs out, the event could also be reported to a central location. Then, at any given time, you could query that centralized collection of data to obtain the desired information.


Article ID:   W17365
File Created: 2008:04:10:15:08:28
Last Updated: 2008:04:10:15:08:28