简体   繁体   English

使用登录用户的用户名在Windows登录上获取邮件

[英]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.

相关问题 如何在Windows中登录用户的全名? - How to get logged-in user's full name in windows? 运行应用程序时可以更改登录(Windows)用户吗? - Can I Change the Logged-In (Windows) User While an Application is Running? Python,获取当前登录用户的Windows特殊文件夹 - Python, get windows special folders for currently logged-in user 可以在另一台计算机(具有相同凭据)上登录的用户登录窗口吗? - Can a logged in user logon windows on another computer (that has the same credentials)? 获取Windows用户名,而不是以ASP .NET Web窗体4.5登录用户名 - getting windows username instead of logged in user name in asp .net web form 4.5 如何使用 C++ 从 Windows 服务中获取登录用户的令牌? - How to get token of logged-in user from within windows service with C++? 如何从C ++的Windows XP上的管理员进程获取有关已登录用户的语言环境信息? - How do I get locale information about logged-in user from an administrator process on Windows XP in c++? 需要捕获登录用户名的Windows - Need to capture the windows logged in username 登录用户而不是运行程序C#,Windows的用户 - Getting logged in user not the user running the program C#, Windows Windows记录的用户信息 - Windows logged user informations
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM