I have this old batch file that I used to upgrade a software and since it is time for another one I have tried creating a GPO and assigned it under User Configuration>Windows Settings>Logon.
But when testing with a user logging on the batch file wont run but when manually clicking the file it runs perfectly fine!
Here is the code: xcopy "Source" "Destination" /S /C /I /H /R /Y
Users have a full time mapped drive from where the source file is copied to the local drive C:\Folder
Note that robocopy is the same and doesn't run automatically.