How to execute a batch file each time a user logins?

Posted by user841923 on Server Fault See other posts from Server Fault or by user841923
Published on 2011-11-22T05:56:37Z Indexed on 2011/11/22 9:59 UTC
Read the original article Hit count: 205

Filed under:
|
|

I've written a batch script which copies of some files in the CommonAppData folder (C:\ProgramData) to the logged in User's Local AppData. What I would like to do is to execute this script for every user every time they login. I found many articles talking about the execution of batch files on startup but I would like to know how to do the same on each login.

I've a written a batch file and copied it in :

C:\Windows\System32\GroupPolicy\User\Scripts\Logon

But it does not seem to be working.

© Server Fault or respective owner

Related posts about batch-file

Related posts about login-script