When running scripts of network shares you may receive the following warning:
The publisher could not be verified. Are you sure you want to run this software?
This prevents the logon script from automatically running when a user logs into their workstation.
Create a group policy object and navigate to User Configuration --> Administrative Templates --> Windows Components --> Attachment Manager
Add "logon.bat" to the "Inclusion list for moderate risk file types" setting.
You can also use wild cards such as *.bat and comma's to separate entries.