Win 7 unattend.xml and domain join

wperry

New member
Local time
8:46 AM
Messages
1
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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<SkipRearm>1</SkipRearm>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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="[URL]http://schemas.microsoft.com/WMIConfig/2002/State[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]">
<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>
 
Last edited by a moderator:

My Computer My Computer

OS
win 7 pro 64
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 Computer My Computer

Computer Manufacturer/Model Number
Custom build
OS
Windows 7 Ultimate SP1 x64
CPU
i7 950 4ghz
Motherboard
EVGA x58 FTW3
Memory
6GB G.Skill pc12800
Graphics Card(s)
EVGA GTX 580 SC
Sound Card
Xfi Titanium
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1200
Hard Drives
Vertex 3 SSD 120Gb x2 RAID 0
4 x 1TB WD Black RAID 0
PSU
Thermaltake 850
Case
Mountain Mods U2-UFO Horizon
Cooling
Custom watercooling
Internet Speed
100 down 5 up
Back
Top