Had a customer where we were doing a standard deployment with MDT 2012. However, what they were experiencing was everytime they went to log in, it cleared the username. After a bit of sleuthing, there is a step in MDT standard sequence called Apply Local GPO Package.
This sets local security policies on the workstation. The templates for this are in templates\GPOPacks\…