Como faço para executar um script quando um usuário faz login
Use um script de logon.
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012
Administrators is the minimum group membership required to complete this procedure. Review the details in "Additional considerations" in this topic. To assign a logon script to a local user account
Open Computer Management.
In the console tree, click Users.
Where?
- Computer Management\System Tools\Local Users and Groups\Users
Right-click the user account that you want, and then click Properties .
On the Profile tab, in Logon script , type the file name and relative path of the script.
Origem Atribuir um script de logon a uma conta de usuário local