I have a GPO that is pushing an immediate task, which runs fine on most computers. However, on the computers that have the same name as the username the task gets scheduled but it is set to run as a local user instead of a domain user. Typically it runs as domain\username but on these particular computers it sets to run as computername\username. I tried setting it to run in user context with the same result. I also tried a regular scheduled task with the same result.
The task runs as expected when logging in as a different user. The task also cannot not be run under a different user because of the nature of the task.
Any one know why this is happening?