我担心我们的一台服务器因为几个原因而被滥用。
有没有一种工具可以在用户login到服务器时发送电子邮件?
我希望收到尽可能多的信息在后台发送给我的电子邮件。
谢谢
我在域根级别的GPO中使用login脚本。 简化版本可能如下所示:
Set ADSysInfo = CreateObject ("ADSystemInfo") Set currComp = GetObject ("LDAP://" & ADSysInfo.ComputerName) Set CurrUser = GetObject ("LDAP://" & ADSysInfo.UserName) if CurrComp.operatingSystem = "Windows 2000 Server" or _ CurrComp.operatingSystem = "Windows Server 2003" then ' send email via whatever SMTP server/etc you have in place ' this will be different depending on the server so i can't give code ' CurrUser.sAMAccountName - user account name ' CurrComp.cn - name of server being logged on to endif
您需要在TechNet上find通过脚本发送电子邮件的方法
如果Server 2008,创build一个sch任务,并定义一个“在一个事件”的触发器。 你很可能想用528作为你的事件,那么你的行动将是“发送电子邮件”。 你将需要一个SMTP服务器。
http://technet.microsoft.com/en-us/library/cc787567(WS.10).aspx事件ID。