开发者

get the times of users login and logout in local network

开发者 https://www.devze.com 2023-02-14 03:28 出处:网络
i want to save details of time of logining on a开发者_如何学运维nd logining off any users in my local network.

i want to save details of time of logining on a开发者_如何学运维nd logining off any users in my local network. now this events are in eventlog of server system and i should run my app only on this pc to get this information and it's not good. now my question is can i give access permission to security of eventlog to any users that they save this information to database?? or how can admin access to this information from client pc??


You can query the lastLogon y lasLogoff properties of the Active Directory (I'm not sure if this properties work if you are not in a domain). You can use Beaver Tail to see how is this done.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号