Windows Server 2003 用户登录审核
如何查找所有用户在我的 Windows Server 2003 上登录的内容。应启用什么属性/设置/服务来记录对我的服务器的所有登录? 有没有办法在用户登录时显示警报邮件或消息(脚本或其他内容)?
How to find what all users have logged on my Windows Server 2003. What is the property/setting/service that should be enabled to log all the logons to my server? Is there a way to display an alert mail or message (a script or something) whenever a user logs on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
转到管理工具 -> 本地安全设置-> 当地政策 -> 审核策略,然后在右侧窗格中设置您想要在事件查看器中记录的事件。
至于在登录时发送电子邮件或消息 - 您可以创建一个批处理文件来执行此操作,并添加到程序 - >启动文件夹的快捷方式。 这将导致批处理在用户登录时运行(尽管不在用户连接到断开连接的会话时运行)。 至于发送电子邮件,网络上有很多免费的命令行电子邮件程序,只需选择一个即可。 或者,您可以通过网络向自己发送一条消息。
最后,您可能会得到比 serverfault.com 更好的答案,那里有更多的系统管理员。
Go to Administrative tools -> Local Security Settings -> Local Policies -> Audit Policy, and on the right pane set the events you'd like to have logged in the event viewer.
As for sending an email or message upon login - you can create a batch file that will do that, and add a shortcut to the programs->startup folder. This will cause the batch to run whenever a user logs in (though not when a user connects to a disconnected session). As for sending an email, there are plenty of free command line emailers on the web, just pick one up. Or, you can NET SEND yourself a message.
Lastly, you'd probably get better answers than these on serverfault.com, where more sysadmins would hang out.
如果您使用 Active Directory,则可以通过 GPO 实施审核策略。
If you're working with Active Directory, you can implement an audit policy through GPO.