Cannot autojoin to domain Windows 10 Ent


  1. Posts : 3
    Windows 10 Pro
       #1

    Cannot autojoin to domain Windows 10 Ent


    Hi,
    the file Clientunattend.xml that I successfully used to join Windows 10 Pro to my domain do not work in Windows 10 Enterprise 2016 LTSB.
    The Clientunattend.xml:
    Code:
    <?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>0415:00000415</InputLocale>
                <SystemLocale>pl-PL</SystemLocale>
                <UILanguage>pl-PL</UILanguage>
                <UILanguageFallback>pl-PL</UILanguageFallback>
                <UserLocale>pl-PL</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>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <SkipUserOOBE>true</SkipUserOOBE>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                </OOBE>
                <AutoLogon>
                    <Password>
                        <Value></Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Domain>DOMAIN</Domain>
                    <Enabled>true</Enabled>
                    <Username>user</Username>
                    <LogonCount>999</LogonCount>
                </AutoLogon>
            </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>
                        <Domain>DOMAIN</Domain>
                        <Password>pass</Password>
                        <Username>user</Username>
                    </Credentials>
                    <JoinDomain>DOMAIN</JoinDomain>
                    <DebugJoin>true</DebugJoin>
                    <UnsecureJoin>false</UnsecureJoin>
                </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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CopyProfile>true</CopyProfile>
            </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>pl-PL</UILanguage>
                </SetupUILanguage>
                <InputLocale>pl-PL</InputLocale>
                <SystemLocale>pl-PL</SystemLocale>
                <UILanguage>pl-PL</UILanguage>
                <UILanguageFallback>pl-PL</UILanguageFallback>
                <UserLocale>pl-PL</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim://wds/reminst/export/w10o16.wim#Win10O16" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    When I apply this xml file to Windows 10 Ent image, then during deployment I see that object computer is created in Active directory:
    Code:
    WIN-BRDL7U9F59N
    and the setupact.log is showing the same computer name:
    Code:
    2020-02-24 15:54:22, Info       [0x06025d] IBS    Callback_ComputerName_Validate:Computer name is WIN-BRDL7U9F59N
    2020-02-24 15:54:22, Info       [0x06025a] IBS    Callback_ComputerName_Generate:Computer name [WIN-BRDL7U9F59N] is valid.
    2020-02-24 15:54:22, Info                  IBS    SetComputerNameOnline: Set the computer name to WIN-BRDL7U9F59N
    but after Windows deployment is finished I login to this computer and I see that computer is not connected to domain and it have other hostname like:
    Code:
    DESKTOP-2RM2HFA
    in panther directory I see in logs this:
    Code:
    2020-02-24 15:52:27, Info       [0x0b008c] WDS    [base\eco\wds\clientapi\client\src\domainjoin.cpp:162] Expression: , Win32 Error=0x1f
    2020-02-24 15:52:27, Info       [0x0b0080] WDS    ProcessImageUnattend: WdsCliGetDomainJoinInformation returned hr = [0x8007001F]
    2020-02-24 15:52:27, Info                  WDS    ProcessImageUnattend: Failed to retrieve domain join information. The client will not join domain.
    Why Clientunattend.xml file is working for Windows 10 Pro and do not on Windows 10 Ent ?
    Could you help me?

    - - - Updated - - -

    I think the problem is because unattend process msoobe.exe is changing computer name when it is already connected to domain, take a look at log from panther\UnattendGC\setupact.log

    Code:
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Begin
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Loading input parameters...
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: AccountData = [NULL]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: UnsecureJoin = [false]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: MachinePassword = [secret not logged]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: JoinDomain = [domain]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: JoinWorkgroup = [NULL]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Domain = [domain]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Username = [user]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Password = [secret not logged]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: MachineObjectOU = [NULL]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: DebugJoin = [true]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: DebugJoinOnlyOnThisError = [NULL]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: TimeoutPeriodInMinutes = [NULL]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Enabled DC Locator ETW tracing. Log file: C:\Windows\Panther\UnattendGC\UnattendedJoinDCLocator.etl
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Checking that auto start services have started.
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Calling DsGetDcName for domain...
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: DsGetDcName returned [domain]
    2020-02-25 09:26:35, Info                         [DJOIN.EXE] Unattended Join: Constructed domain parameter [domain\domain]
    2020-02-25 09:26:41, Info                         [DJOIN.EXE] Unattended Join: NetJoinDomain succeeded!
    2020-02-25 09:26:42, Info                         [DJOIN.EXE] Unattended Join: Exit, returning 0x1
    but later in the same log, process msoobe.exe is changing computername from already connected into domain "WIN-BRDL7U9F59N" to "DESKTOP-2RM2HFA "

    Code:
    2020-02-25 09:27:42, Info                         [msoobe.exe] TASK: Begin running task SetComputerName...
    2020-02-25 09:27:42, Info                         [msoobe.exe] Setting computer name to [DESKTOP-2RM2HFA]
    2020-02-25 09:27:42, Info                         [msoobe.exe] TASK: End successfully running task SetComputerName
    Last edited by Tutek; 25 Feb 2020 at 03:31.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:48.
Find Us




Windows 10 Forums