I've used Windows System Image Manager to generate the XML file below.
The issue is that only certain parts of the file seem to be being read, i.e. it will enable the local administrators account but then will not set the password. It is also not managing to join the machine to the domain. If anyone has any ideas whatsoever I'ld really appreciate it. For two days I've been banging my head against the wall now!

Thanks, Ed.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" 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">
<InputLocale>en-GB</InputLocale>
<SystemLocale>en-GB</SystemLocale>
<UILanguage>en-GB</UILanguage>
<UserLocale>en-GB</UserLocale>
<UILanguageFallback>en-GB</UILanguageFallback>
<WillShowUI>OnError</WillShowUI>
</component>
<component name="Microsoft-Windows-Shell-Setup" 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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<RegisteredOrganization>IT Services</RegisteredOrganization>
<RegisteredOwner>Authorised User</RegisteredOwner>
<WillShowUI>OnError</WillShowUI>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" 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">
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Description>Enable Local Administrator Account</Description>
<Order>1</Order>
<Path>cmd /c net user Administrator /active:yes</Path>
</RunAsynchronousCommand>
</RunAsynchronous>
<WillShowUI>OnError</WillShowUI>
</component>
<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>
<JoinDomain>mydomainname.local</JoinDomain>
<UnsecureJoin>true</UnsecureJoin>
</Identification>
<WillShowUI>OnError</WillShowUI>
</component>
</settings>
<settings pass="auditSystem">
<component name="Microsoft-Windows-Deployment" 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">
<AuditComputerName>
<Name>%COMPUTERNAME%</Name>
</AuditComputerName>
<WillShowUI>OnError</WillShowUI>
</component>
<component name="Microsoft-Windows-Shell-Setup" 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">
<UserAccounts>
<AdministratorPassword>
<Value>mysecurepassword</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<WillShowUI>OnError</WillShowUI>
</component>
</settings>
<cpifflineImage cpi:source="wim://server20/c$/users/ect/desktop/w7p.wim#Windows 7 PRO Clean" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>