[英]How do I retrieve a list of logon/logoff/lock/unlock times in Windows?
Is there any way to get a list of times that a user logged on, logged off, locked, or unlocked their computer for the past week or so without adding a service to track it as it happens? 有什么方法可以获取用户过去一周左右的登录,注销,锁定或解锁计算机时间的列表,而无需添加服务来对其进行跟踪? Does Windows even keep that information for that long?
Windows甚至会保留该信息那么长时间?
Check EventLog. 检查EventLog。 I know that logon/logoff times are written there.
我知道登录/注销时间写在那里。
For Lock/unlock, I am not sure. 对于锁定/解锁,我不确定。
If you check the event log and you can look under audits for the username. 如果检查事件日志,则可以在审核下查找用户名。 It treats a logon/unlock as an authentication.
它将登录/解锁视为身份验证。 There may be more in the event that you can trace it back to a spefic logon/logoff event (lock, or an actual logoff, etc).
如果您可以追溯到特定的登录/注销事件(锁定或实际注销等),则可能还会有更多事件。
您可以尝试使用WMI进行Win32_UserAccount活动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.