Joining Domain when Selecting Workgroup

Rickel, Dakota 1 Reputation point
2022-07-28T15:42:53.717+00:00

I haven't updated my base image in a while and wanted to do so with the latest version of Windows. I downloaded the ISO from VLSC and pointed MDT towards the install.wim. Upon booting this image I get stuck on "Getting Ready" for about 15 minutes. Then it does all I need, syspreps, but then instead of booting into PE it boots back into Windows where it again gets stuck on "Getting Ready" for another 15 minutes before just sitting at the desktop indefinitely. The part that makes no sense to me is that I'm telling it during setup to join a homegroup, not a domain.

This is my customsettings:

[Settings]  
Priority=Default  
Properties=MyCustomProperty  
  
[Default]  
_SMSTSOrgName=REDACTED Deployment  
OSInstall=Y  
SkipCapture=NO  
SkipAdminPassword=YES  
SkipProductKey=YES  
SkipComputerBackup=YES  
SkipBitLocker=YES  
SkipBDDWelcome=YES  
SkipTimeZone=YES  
SkipLocaleSelection=YES  
SkipUserData=YES  
  
JoinDomain=REDACTED.local  
DomainAdmin=REDACTED  
DomainAdminDomain=REDACTED.local  
MachineObjectOU=OU=CHANGE_ME,OU=REDACTED,DC=REDACTED,DC=local  

This is my bootstrap:

[Settings]  
Priority=Default  
  
[Default]  
DeployRoot=\\REDACTED\DeploymentShare$  
UserID=REDACTED  
UserDomain=REDACTED  
TimeZoneName=Central Standard Time  
SkipBDDWelcome=Yes  

The logs contain the following:

setupact in Panther

2022-07-22 15:17:11, Info [setup.exe] [Action Queue] : Executing command "C:\WINDOWS\SYSTEM32\DJOIN.EXE" specialize
2022-07-22 15:32:12, Info [setup.exe] [Action Queue] : process exit code = 0
2022-07-22 15:32:12, Info [setup.exe] [Action Queue] : Unattend action returned operation complete.

setuperr

2022-07-22 15:32:12, Error [DJOIN.EXE] Unattended Join: NetJoinDomain failed error code is [2695]
2022-07-22 15:32:12, Error [DJOIN.EXE] Unattended Join: Unable to join; gdwError = 0xa87

setupatc

2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Begin
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Loading input parameters...
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: AccountData = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: UnsecureJoin = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: MachinePassword = [secret not logged]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: JoinDomain = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: JoinWorkgroup = [base072222]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Domain = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Username = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Password = [secret not logged]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: MachineObjectOU = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: DebugJoin = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: DebugJoinOnlyOnThisError = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: TimeoutPeriodInMinutes = [NULL]
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Checking that auto start services have started.
2022-07-22 15:17:11, Info [DJOIN.EXE] Unattended Join: Joining workgroup [base072222]...
2022-07-22 15:17:11, Warning [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0xa87, will retry in 10 seconds...

15 minutes pass

2022-07-22 15:32:02, Warning [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0xa87, will retry in 10 seconds...
2022-07-22 15:32:12, Error [DJOIN.EXE] Unattended Join: NetJoinDomain failed error code is [2695]
2022-07-22 15:32:12, Error [DJOIN.EXE] Unattended Join: Unable to join; gdwError = 0xa87
2022-07-22 15:32:12, Info [DJOIN.EXE] Unattended Join: Exit, returning 0x0

Things I have tried:

  • Regular Windows 10 image that anyone can download
  • cleaning disk
  • Restarting Server
  • Reinstalling ADKs and creating new boot images
  • Recreating the Task Sequence
  • Disabling Recover from Domain in Task Sequence
  • Removing the following portion from customsettings
    • JoinDomain=REDACTED.local
    • DomainAdmin=REDACTED
    • DomainAdminDomain=REDACTED.local
    • MachineObjectOU=OU=CHANGE_ME,OU=REDACTED,DC=REDACTED,DC=local
  • Creating new Deployment Share and leaving everything to defaults
Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2022-07-29T03:06:14.6+00:00

    Hi, @Rickel, Dakota

    Thank you for posting in Microsoft Q&A forum.

    You may try to add two task sequence variables at the top of your task sequence under initialization to see if it helps.

    Task Sequence Variable: JoinDomain Value: FALSE

    Task Sequence Variable: JoinWorkGroup Value: base072222


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.