获取用户在本地网络登录和注销的次数 [英] get the times of users login and logout in local network

查看:15
本文介绍了获取用户在本地网络登录和注销的次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想保存登录和注销本地网络中任何用户的时间的详细信息.现在这个事件在服务器系统的事件日志中,我应该只在这台电脑上运行我的应用程序来获取这些信息,这并不好.现在我的问题是我可以向他们将此信息保存到数据库的任何用户授予事件日志安全性的访问权限吗?或者管理员如何从客户端电脑访问这些信息??

i want to save details of time of logining on and 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??

推荐答案

您可以查询 Active Directory 的 lastLogon y lasLogoff 属性(如果您不在域中,我不确定此属性是否有效).您可以使用 BeaverTail 来查看这是如何完成的.

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.

这篇关于获取用户在本地网络登录和注销的次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆