We are seeing a very odd issue where computer records in the Deployment Console are changing their name randomly.
Our initial suspicion is database corruption. This may be caused by an hourly SQL job we have running on the server to change the group ID on each computer account to synchronise our Deployment Console with our Active Directory structure. The query has several lines like this in it
osql -E -S SERVER -d dsolution -Q "update computer set group_id = '59' where msnet_domain_ou in ('administration/information services/workstations')"
We have a line like this for each OU in Active Directory that we want to sync with Deployment Solution and these lines are in a batch file which runs every hour using a scheduled task.
When selecting a computer in the Deployment Console and scheduling a job, the computer name will randomly change to a different machine when looking at the job status.
I am using MAC address to identify computers, so they should be unique and the computer name is simply an identifier for human usage when scheduling jobs etc.
Any thoughts on what might be the problem and, if possible, how I might resolve this?