ZippyV said:I'm not sure if the ip is logged but the name of the workstation certainly is. Why would you want to record ip addresses when you can get much more detailed information from AD? Check out the event log to get all this information.
Also, creating a list of login- and logoff-times is going to be more difficult than you think. AD doesn't work that way, instead when you login the workstation gets a token and you are immediatly logged off from AD's point of view. Then, when you need something from the network your workstation sends the token, AD validates it (logon) and logs you off again.
Hey ZippyV,
Thank you for the information.
I need to login the IP to check if the user is connecting from VPN or not. I need to lock out the guys coming from VPN.
I will write the code to query from the AD. What i want to do is the kind of data above, but i want to get the AD involved so i don't write even more code.
Do you have any idea what should i do if i want to do such thing ?
Thanks,
Remon