Answered by:
Sysprep with domain Autojoin

Question
-
Hello everyone, I was syspreping windows 7 pro x64 with an unattended file XML with domain auto join i get the result:
The computer joined the domain with a random name such as WIN-NI7... , not with the name that i provided in the windows setup configuration after the sysprep completed.
Here is my XML file:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<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>it-IT</InputLocale>
<SystemLocale>it-IT</SystemLocale>
<UILanguage>it-IT</UILanguage>
<UILanguageFallback>it-IT</UILanguageFallback>
<UserLocale>it-IT</UserLocale>
</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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>password</Value>
<PlainText>false</PlainText>
</Password>
<Description>User used to Install OS</Description>
<DisplayName>OSI</DisplayName>
<Group>administrators</Group>
<Name>USER</Name>
</LocalAccount>
</LocalAccounts>
<AdministratorPassword />
<DomainAccounts />
</UserAccounts>
<TimeZone>W. Europe Standard Time</TimeZone>
<AutoLogon>
<Password>
<Value>password</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>USER</Username>
</AutoLogon>
<ClientApplications />
<Display />
<FirstLogonCommands />
<FolderLocations />
<LogonCommands />
<OEMInformation />
<OEMWelcomeCenter />
<OEMWelcomeCenterLinks />
<StartPanelLinks />
<TaskbarLinks />
<Themes />
<VisualEffects />
<WindowsFeatures />
</component>
</settings>
<settings pass="specialize">
<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>
<Username>userjoindomain</Username>
<Password>password</Password>
<Domain>domian</Domain>
</Credentials>
<Provisioning />
<JoinDomain>domain.local</JoinDomain>
<MachineObjectOU>OU=Computers,OU=domain,DC=domain,DC=local</MachineObjectOU>
<DebugJoin>true</DebugJoin>
</Identification>
</component>
<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>it-IT</InputLocale>
<SystemLocale>it-IT</SystemLocale>
<UILanguage>it-IT</UILanguage>
<UserLocale>it-IT</UserLocale>
</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">
<AutoLogon>
<Password />
</AutoLogon>
<ClientApplications />
<Display />
<NotificationArea>
<PromotedIcon1 />
<PromotedIcon2 />
</NotificationArea>
<OEMInformation />
<OEMWelcomeCenter />
<OEMWelcomeCenterLinks />
<StartPanelLinks />
<TaskbarLinks />
<Themes />
<WindowsFeatures />
<TimeZone>W. Europe Standard Time</TimeZone>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" 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">
<Accelerators />
<FavoriteBarItems />
<FavoritesList />
<FeedList />
<InstalledBHOList />
<InstalledBrowserExtensions />
<InstalledToolbarsList />
<PreApprovedAddons />
<QuickLinkList />
<SearchScopes />
<StartPages />
<DisableAccelerators>true</DisableAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<Home_Page>about:blank</Home_Page>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Accelerators />
<FavoriteBarItems />
<FavoritesList />
<FeedList />
<InstalledBHOList />
<InstalledBrowserExtensions />
<InstalledToolbarsList />
<PreApprovedAddons />
<QuickLinkList />
<SearchScopes />
<StartPages />
<DisableAccelerators>true</DisableAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<Home_Page>about:blank</Home_Page>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://pcname/gsources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Help please am on a tight deadline...
Monday, May 9, 2016 5:29 PM
Answers
-
Hi laitjagami,
According to your description, the domain join process uses the image unattend file to pass data that is collected within Windows PE to the subsequent phases of Setup. If an image is associated with an image unattend file, the domain joins and computer name settings will be made directly to this file. Please check the link below to get more information about Automating the Domain Join.
https://technet.microsoft.com/en-us/library/cc730845%28WS.10%29.aspx?f=255&MSPPError=-2147217396
There isn't a part to define computer name in unattend file. Please check the link below.
Then I find a problem is similar with you in the link below. Please look for whitesnake123 said in the post.
Hope it will be helpful to you.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Marked as answer by laitjagami Tuesday, May 10, 2016 11:51 AM
- Unmarked as answer by laitjagami Tuesday, May 10, 2016 11:52 AM
- Marked as answer by laitjagami Tuesday, May 10, 2016 11:53 AM
Tuesday, May 10, 2016 11:34 AM
All replies
-
Hi laitjagami,
According to your description, the domain join process uses the image unattend file to pass data that is collected within Windows PE to the subsequent phases of Setup. If an image is associated with an image unattend file, the domain joins and computer name settings will be made directly to this file. Please check the link below to get more information about Automating the Domain Join.
https://technet.microsoft.com/en-us/library/cc730845%28WS.10%29.aspx?f=255&MSPPError=-2147217396
There isn't a part to define computer name in unattend file. Please check the link below.
Then I find a problem is similar with you in the link below. Please look for whitesnake123 said in the post.
Hope it will be helpful to you.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Marked as answer by laitjagami Tuesday, May 10, 2016 11:51 AM
- Unmarked as answer by laitjagami Tuesday, May 10, 2016 11:52 AM
- Marked as answer by laitjagami Tuesday, May 10, 2016 11:53 AM
Tuesday, May 10, 2016 11:34 AM -
Thanks Carl Fan, very helpfulTuesday, May 10, 2016 11:52 AM