Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Win 7 unattend.xml and domain join

11 Jan 2012   #1
wperry

win 7 pro 64
 
 
Win 7 unattend.xml and domain join

am using wds and wsim to do my imaging
I created an answer file that works for just about everything accept joining to the domain. I have my answer file configured to prompt for computer name only and all the rest is automated. It prompts for the computername and carries on.The answer file seems to join it to the domain as when the imaging process finishes I get a domain logon prompt, however when i try to log into my domain I get an error saying the security database doesnt have an computer account for this trust relationship. Also when i search ad for the computername its not there. The machine is being joined to the domain under an win 7 generated name!!

WIN-xxxxxxxxxxxxxxxxxxxxxxxxxx

here is my answer file

Code:
 
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipRearm>1</SkipRearm>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>net user administrator /active:yes</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RegisteredOrganization>Microsoft</RegisteredOrganization>
<RegisteredOwner>AutoBVT</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<StartPanelOff>true</StartPanelOff>
<TimeZone>Eastern Standard Time</TimeZone>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
</component>
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" 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>xxxxxx</Domain>
<Password>xxxxxxx</Password>
<Username>xxxxxxxxx</Username>
</Credentials>
<DebugJoin>True</DebugJoin>
<JoinDomain>xxxxxxxxxxx</JoinDomain>
</Identification>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UserLocale>en-us</UserLocale>
<UILanguage>en-us</UILanguage>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</CommandLine>
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>TAAzAHQATQAzADEATgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Description>Local Administrator</Description>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<RegisteredOrganization>xxxxxxx</RegisteredOrganization>
<RegisteredOwner>xxxxxxxx</RegisteredOwner>
</component>
</settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<UserLocale>en-us</UserLocale>
<UILanguageFallback>en-us</UILanguageFallback>
<UILanguage>en-us</UILanguage>
<SystemLocale>en-us</SystemLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<WindowsDeploymentServices>
<Login>
<Credentials>
<Domain>xxxxxxx</Domain>
<Password>xxxxxxxx</Password>
<Username>xxxxxxx</Username>
</Credentials>
</Login>
</WindowsDeploymentServices>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://torvsrvtest/reminst/w7.wim#Win7V2" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>



My System SpecsSystem Spec
.

11 Jan 2012   #2
Sedril

Windows 7 Ultimate SP1 x64
 
 

Below is a quote from technet, I believe what may be missing is the unsecure command, meaning it doesn't immediately have to have the username and password credentials... Might be worth a shot to add that in.... I haven't tried the autojoin with the unattend yet...



For Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 images. The image unattend file (ImageUnattend.xml) must have the setting <UnsecureJoin>true</UnsecureJoin> in the Microsoft-Windows-UnattendedJoin component. Additionally, the Microsoft-Windows-Shell-Setup component for the <specialize> unattended pass must exist, even if it is empty.
My System SpecsSystem Spec
Reply

 Win 7 unattend.xml and domain join




Thread Tools





Similar help and support threads
Thread Forum
Cannot join domain
On an HP Windows 7 64-bit machine I get the error message "An Active Directory Domain Controller (AD DC) for the domain "ad.mackaysstores.co.uk" could not be contacted." This machine is set up the same as all the others on the network and has worked before so I don't know what's changed?
Network & Sharing
How to join a domain via VPN
We have a user who works remotely from home. I would like to add his machine to our domain (as we do in the office) so that he can log in and operate as if he was here. Can this be done easily? Any assistance would be greatly appreciated!
Network & Sharing
Domain Join issue
Hey Guys, Im a bit of a noob with Windows 7 and am currently fumbling my way through the OS. We are in the process of deploying Windows 7 to our domain. At the moment we have a Windows Server 2003 native domain but currently have Windows Server 2008 R2 Domain Controllers. We are having...
Network & Sharing
Windows 7 unable to Join 2003 Domain, offline Join erro
Hello to all, I have a Windows 7 Professional Version 6.1.7600 Build 7600 Every time I try to join the 2003 server Domain, I got the error attached in the post. Im not trying to do a offline joint, the W7 can ping the domain IP, and can resolve the domain name. I hope anyone can help me...
Network & Sharing
Win 7 can not join domain
Dear all i just buy a new notebook with win 7 pro, but i get a problem when to connect it into our domain (win 2003 service pack 2). I can ping another ip in network but i can not ping our DC, there are message request time out. So when i change the connection from control panel->system it's...
Network & Sharing
Cannot Join NT4 Domain
Hello all... I just installed build 7000 and I'm having issues connecting to my domain at work. I cannot setup my Outlook account either because my network exchange server is NT4 based. I have tried setting up my account via Outlook and via the "Mail" portion of Control Panel to no avail......
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:49.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App