Link to home
Start Free TrialLog in
Avatar of Yashy
YashyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How can I tell how long somebody has been logged on for on a server 2003

Hi guys

If somebody logs onto the server through AD, how can I tell for how long that user stayed logged on for? Is this something that can be enabled via auditing?

Many thanks
Yash
Avatar of barrykfl
barrykfl
Flag of Hong Kong image

just try extract all the logon log ...filter his name and count his time
You cannot do that simply. AD does not store that information. You need for that some scrpt which checks user logon and logoff date and time.

However, if you have enabled Directory Services auditing (by default enabled) you can look in Security event log user logon and logoff events and evaluate it by yourself ;)

Regards,
Krzysztof
You could check the modified date on the users profile on the terminal server (in c:\documents and settings\user).

For the last logon with the account, this value is stored in AD and can usually be viewed with a simple VBS script.

http://www.rlmueller.net/Last%20Logon.htm
ASKER CERTIFIED SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial