[英]Getting mail on windows logon with username of logged-in user
I am trying to create action task that will send mail when anyone logs in to a particular system with username of a logged in user. 我正在尝试创建操作任务,该任务将在任何人使用登录用户的用户名登录到特定系统时发送邮件。
I am very new to this task since I never worked as a system admin anytime. 我对这个任务非常陌生,因为我从没在任何时间担任系统管理员。 What I think I should do is to specify a program to execute when log-in event occurs, but am not aware of what sort of program I should.
我想我应该做的是指定一个发生登录事件时要执行的程序,但不知道应该使用哪种程序。 I thought it should be
exe
file. 我认为应该是
exe
文件。
Q. Can I specify vbs file? 问:我可以指定vbs文件吗?
Q. If yes what should be the content of vbs
? 问:如果是,
vbs
的内容应该是什么? Is there any ready made script available for accomplishing the same? 是否有现成的脚本可用于完成相同任务?
Q. Also not sure where to specify it. 问:同样不确定在哪里指定它。 Is this below screen where I can specify it:
这是我可以在下面指定的屏幕吗?
Q. Also this I am trying to do on windows 7 which is in network with AD configured on Windows Server 2008. So where should I specify the action? 问:这也是我尝试在Windows 7上执行的操作,该Windows 7在Windows Server 2008上配置了AD。 on server or on this particular Win 7 machine?
在服务器上还是在特定的Win 7计算机上?
If u have AD, you can use logon scripts (*.cmd | *.vbs) and specify it for each clients. 如果您有AD,则可以使用登录脚本(* .cmd | * .vbs)并为每个客户端指定它。 To send email by the command line, try to use smth like
telnet smtp.gmail.com 25/465
. 要通过命令行发送电子邮件,请尝试使用
telnet smtp.gmail.com 25/465
类的smth。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.