Windows 7 x64 OSD, incorrect computer name, broken domain membership.
I've got x86 Windows 7 deploying just fine through ConfigMgr. I've made a copy of my x86 task sequence to use to deploy the x64 version of Windows 7. Everything works as it should, no errors at all throughout the log. When the computer is added to the domain, it ends up being added with its generic sysprep name (WIN-0T1B6O1I703U), and not the name specified during the task sequence. If we look at the "Apply Windows Settings" step, we do indeed see the CORRECT computer name being appended to the unattend.xml file. ------------------------------------------------------------- "E:\Windows\panther\unattend\unattend.xml" Computer Name: VO-7x64TEST Getting namespace "Microsoft-Windows-Shell-Setup" for architecture "amd64" Registered Owner: Getting namespace "Microsoft-Windows-Shell-Setup" for architecture "amd64" Registered Organization: Time Zone: Pacific Standard Time Time zone: Pacific Standard Time Setting product key. Setting local admin password. Writing configuration information to E:\Windows\panther\unattend\unattend.xml Successfully saved configuration information to E:\Windows\panther\unattend\unattend.xml Exiting with return code 0x00000000. -------------------------------------------------------------------------------------------------------- When all's said and done, I check the machine and it does indeed have the correct computer name and had been added to the domain (although the computer account in AD is showing WIN-________). If you try to login to the machine you get the following error "The security database on the server does not have a computer account for this workstation trust relationship". You need to login as local admin, remove the computer from the domain, and re-add it, then all is well. So, any ideas? I don't have any issues with the x86 version, task sequences are identical. Seems like the initial add to the domain is not using the name specified name in unattend.xml, but then the task sequence ends up renaming the machine which breaks the domain membership, very odd issue indeed.
January 25th, 2010 4:13pm

Solved... the "Use Unattended XML File" option under the "Apply Operating System" was overriding whatever settings it was trying to write above. Removing the "Use Unattended XML File" option from the "Apply Operating System" task seemed to do the trick. Somehow, with the XML File specified, the steps above were not properly appending to it.
Free Windows Admin Tool Kit Click here and download it now
January 25th, 2010 5:01pm

Is this some sort of bug? I have the same issue with an MDT integrated TS with 7 x64. I use an xml to copy the administrator profile to default user. When I unchecked using the xml like you suggested, the domain membership is fine. Is their anyway to specify a xml file without the membership becoming messed up?
February 15th, 2011 7:27am

well what's in your unattend.xml, the domain membership and computername parts are injected in the Apply Network Settings and Apply Windows Settings steps My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 7:31am

<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <ImageInstall> <OSImage> <WillShowUI>OnError</WillShowUI> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <InstallFrom> <Path>Install.wim</Path> <MetaData> <Key>/image/index</Key> <Value>1</Value> </MetaData> </InstallFrom> </OSImage> </ImageInstall> <UpgradeData> <Upgrade>false</Upgrade> </UpgradeData> <Display> <ColorDepth>16</ColorDepth> <HorizontalResolution>1024</HorizontalResolution> <RefreshRate>60</RefreshRate> <VerticalResolution>768</VerticalResolution> </Display> <ComplianceCheck> <DisplayReport>OnError</DisplayReport> </ComplianceCheck> <UserData> <AcceptEula>true</AcceptEula> <ProductKey> <Key></Key> </ProductKey> </UserData> </component> <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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass="generalize"> <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"> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> </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"> <Identification> <Credentials> <Username></Username> <Domain></Domain> <Password></Password> </Credentials> <JoinDomain></JoinDomain> <JoinWorkgroup></JoinWorkgroup> <MachineObjectOU></MachineObjectOU> </Identification> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <ComputerName></ComputerName> <ProductKey></ProductKey> <RegisteredOrganization></RegisteredOrganization> <RegisteredOwner></RegisteredOwner> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> <TimeZone>Pacific Standard Time</TimeZone> <CopyProfile>true</CopyProfile> </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"> <Home_Page>http://www.microsoft.com/</Home_Page> <IEWelcomeMsg>false</IEWelcomeMsg> <DisableFirstRunWizard>true</DisableFirstRunWizard> </component> <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"> <Description>EnableAdmin</Description> <Order>1</Order> <Path>cmd /c net user Administrator /active:yes</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Description>UnfilterAdministratorToken</Description> <Order>2</Order> <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path> </RunSynchronousCommand> </RunSynchronous> </component> <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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> <component name="Microsoft-Windows-TapiSetup" 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"> <TapiConfigured>0</TapiConfigured> <TapiUnattendLocation> <AreaCode>""</AreaCode> <CountryOrRegion>1</CountryOrRegion> <LongDistanceAccess>9</LongDistanceAccess> <OutsideAccess>9</OutsideAccess> <PulseOrToneDialing>1</PulseOrToneDialing> <DisableCallWaiting>""</DisableCallWaiting> <InternationalCarrierCode>""</InternationalCarrierCode> <LongDistanceCarrierCode>""</LongDistanceCarrierCode> <Name>Default</Name> </TapiUnattendLocation> </component> <component name="Microsoft-Windows-SystemRestore-Main" 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"> <DisableSR>1</DisableSR> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <UserAccounts> <AdministratorPassword> <Value>**Removed**</Value> <PlainText>false</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Description>Temp account</Description> <DisplayName>Temp account</DisplayName> <Group>Users</Group> <Name>TempAccount</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Enabled>true</Enabled> <Username>Administrator</Username> <Domain>.</Domain> <Password> <Value>**Removed**</Value> <PlainText>false</PlainText> </Password> <LogonCount>999</LogonCount> </AutoLogon> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> <Description>Lite Touch new OS</Description> <Order>1</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> <Description>Lite Touch new OS</Description> <Order>2</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> <Description>Lite Touch new OS</Description> <Order>3</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start</CommandLine> <Description>Lite Touch new OS</Description> <Order>4</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>5</Order> <CommandLine>cmd /c reg add HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management /v ClearPageFileAtShutdown /t REG_DWORD /d 0 /f</CommandLine> <Description>Disable Clear Page File At Shutdown</Description> </SynchronousCommand> </FirstLogonCommands> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <RegisteredOrganization></RegisteredOrganization> <RegisteredOwner></RegisteredOwner> <TimeZone></TimeZone> </component> <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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass="offlineServicing"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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"> <DriverPaths> <PathAndCredentials wcm:keyValue="1" wcm:action="add"> <Path>\Drivers</Path> </PathAndCredentials> </DriverPaths> </component> </settings> <cpi:offlineImage cpi:source="wim://server/share/windows%207%20x64%20image/win7_x64.wim#Windows 7 Enterprise X64 Build 1.0" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
February 16th, 2011 8:45am

whenever I used this xml, the domain trust is broken. The name is right after the build is complete. As soon as I unchecked use xml like the original poster, it named correctly and the trust was fine. Just seems when there is an xml specified, it tries to overwrite or duplicate what is already in the xml with the apply network settings and/or Windows Settings steps.
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2011 4:25pm

I'll keep this in mind when I write the x86 version of my windows 7 deployment! Thanks for posting this!
February 20th, 2011 9:25pm

Workaround is using additional TS step (OS mode) "Join Domain" after image deployment with custom unattend.xml. In step (PE mode) "Apply Network Settings" specify "join to workgroup"... Best regards, Evgueni...
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2011 8:48am

I ran into the same problem. I was deploying Windows 7 x64, but my xml file had processorArchitecture="x86" Solved it by replacing all references from processorArchitecture="x86" to processorArchitecture="amd64". From your xml it says amd64 so it should be correct for x64, are you deploying x86 or x64 Windows 7 ? Regards Thomas Alterhaug.
June 26th, 2012 5:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics