I am deploying windows 7 images to our classroom PC's via WDS. Am trying to get the machine to auto join the domain through the unattend file but am running into an issue. The unattendfile is created with WSIM. The domain section to my understanding is done within the Specialise phase under 'unattendjoin' the part of which my unattend file looks like this:
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identification>
<Credentials>
<Domain>domainname</Domain>
<Password>adminpassword</Password>
<Username>domainadmin</Username>
</Credentials>
<JoinDomain>domainnaim</JoinDomain>
</Identification>
</component>
</settings>
My issue is however is that once this is done, the machine can still not log into the domain. Instead an error is received on login:
The trust relationship between this workstation and the primary domain failed.
I can log into the default local machine admin, and I find that the domain is set to
domainname.local
It is only after this is set back to
domainname
and the computer restarted can I then log into the domain (basically joining the domain manually.)
Is there anyway I can get the machine to correctly join the domain from within the unattend file, so that we can start the deploy and walk away? We have many classrooms of PC's to deploy so it really needed.