I'm using the latest version of MDT to image 80+ workstations with Windows 10 Ent x64 ver 1803. I've created the wim image, created the deployment share, task sequence and edited the unattend file via MDT along with the customsettings.ini and bootstrap files. I can't do PXE boot so I'm using a bootable usb stick to run the litetouch install process. I've configured the customsettings.ini file to prompt for computername and domain, which it does. I then enter the computer name and domain along with credentials. The workstation names have already been created in Active Directory. The process continues without issue and then it boots into Windows using a local admin account. When I check system settings, the computer name is "desktop-xxxxxx" and it joined a workgroup instead of the domain.
I think it has something to do with my unattend file, but I'm not sure. I've attached my customsettings.ini and unattend.xml files. I'm a bit confused with the domain join part of the unattend file under the Specialize pass: "amd64_Microsoft-Windows-UnattendedJoin_neutral" --> I've added the "identification" substring and given it the fqdn to join, but then under "credentials" I've also given it the domain name, user name and password.. perhaps that is conflicting somehow with customsettings?
summary: I want the install to prompt for computername, then joined the domain automatically. I had tried manually but it didn't work. CustomSettings.ini Unattend_edited.xml
Windows 10* MDT* Deployment Image Servicing and Management (DISM)
Last Comment
netfriendsinc
8/22/2022 - Mon
aravind anche
Hello
I don't see domain join in your custom settings.ini
add
JoinDomain =
DomainAdmin =
DomainAdminDomain =
DomainAdminPassword =
add them and try.
Also
MachineObjectOU=ou= Deployment,OU= ,DC= ,DC=com
leave the default unattend.xml
Cliff Galiher
In general I don't recommend setting these in files unless necessary. MDT has a join domain task in the default task sequence that can be configured. A fairly common problem I see is when both are configured and there is conflicting info.
aravind anche
Also you can add computer name
OSDComputerName=desktop-%SerialNumber%
Okay, so even if the object already exists in AD I still need to add the MachineObjectOU line? And leave out the windows-unattendedjoin from specialize?
netfriendsinc
ASKER
@Cliff Galiher -- I just need to choose "add" then "general" then what? I'm pretty unfamiliar with editing the task sequence. Thank you!
also you don't have to add domain join step in task sequence it already there. cliff is referring to that. that step run domain join script(ztidomainjoin.wsf)
netfriendsinc
ASKER
Aravind, I had deleted that earlier as I was using the unattend.xml file to join, but that isn't working.
aravind anche
any errors in bdd log?
use default unattend xml file.
delete machine from ad and run deployment.
or as a test create test deployment share and give the custom settings and connect to that
before doing that have you changed custom settings if so please attach those
netfriendsinc
ASKER
I deleted the unattendedjoindomain from the specialize pass in unattend.xml and added these variables to the customsettings.ini:
JoinDomain=Your Domain Name – EX: Test.Local
DomainAdmin=A User that Can Join Machines to the Domain
DomainAdminDomain= Your Domain Name – EX: Test.Local
DomainAdminPassword=The DomainAdmin user’s password
I'm going back through the image process now, will let you know.
netfriendsinc
ASKER
Okay so the workstation was imaged successfully again, however it joined a workgroup with my domain name, not the domain, and the hostname of the computer didn't stay when I was prompted to enter it. it's "desktop-xxxxxx" again.
Have you added "MachineObjectOU=OU=New Computers,OU=Workstations,OU=PAI-Minneapolis,DC=ntserver,DC=local" in custom settings?
something like this
aravind anche
I didn't get what you mean
"and the hostname of the computer didn't stay when I was prompted to enter it. it's "desktop-xxxxxx" again. "
netfriendsinc
ASKER
I have the customsettings.ini file set to: SkipComputerName=NO so that it prompts for a computer name during setup. I enter the name of the computer, then it continues setup and eventually when I get into windows, it has a new hostname of "workstation-xxxxxx"
yes in welcome page it asks for computer name, for example if you give desktop-1234, is it not setting that?
netfriendsinc
ASKER
Problem remains, even after adding in the MachineObjectOU (start from object container and work back correct? so OU=computer,OU=clinic,OU=hospital,DC=JHDR,DC=edu)
Not sure why the hostname is being changed either. I've attached the CS.ini file CustomSettings.ini
aravind anche
can you check ztigather.log if it is taking computername
welcome page is when you start the deployment it asks for choosing TS, next computername, time
netfriendsinc
ASKER
yea i had looked there, but there is no deploymentlogs in Temp folder, nothing hidden either. I specify the password for the user that has join rights to the domain in the CS.ini file:
DomainAdminPassword=xxxxxxxx
aravind anche
sorry I was wrong you have domain name as dhe.duke.edu
so
MachineObjectOU=ou=Echo-DukeNorth,OU=Computers,DC=xxx,DC=xxxx,DC=edu
Sorry I wasn't clear on that.. but I want to be prompted each time so I can enter a unique hostname for each workstation. I had this configured in win7 x64 and it worked everytime, now with win 10 it doesn't.
So during the setup process I had SkipComputerName=NO -- it would prompt for a computer name, which I would enter, then click okay and the rest of the process was automated, only to find that it was giving it a different hostname when I got into Windows than what I had entered. I don't have a database of names to draw from to auto name the workstations.
aravind anche
Also as a check try to add a machine to domain using the credential you provided in customsettings and confirm it is adding
aravind anche
OSDComputerName=!fill
add this and try it should prompt
It prompted for computer name after I removed both of those variables. Let's see if it sticks.. 1128181403.jpg
netfriendsinc
ASKER
Okay so the computer name changed again, so it's happening sometime after I manually input the desired hostname, and then when domain join happens, it can't b/c of the computer name so it makes it a workgroup. 1128181414.jpg
aravind anche
What computername you gave?
is there anything in Tasksequence causing that?
Is there any group policy?
also what is the serial number, is it matching the name?
i'm giving it echo-dt-821
Hmm.. there is a "gather local only" under "Preinstall" and the "gather only local data (do not process rules)" radial button is selected - perhaps that's causing it?
No GPO and the serial number does not match the workstation name it was given
The WIM image I'm currently using is one I made using the latest WINPE for windows 10 1809 (I'm using win 10 ent x64 1803) I then imported that wim file when creating the deployment share. I did this with win 7 x64 without issue. Should I just start the entire process over? close deployment share, create a new one, import the wim file, and then edit the default TS and just use CS.ini like we did today for computer name/domain/etc?
ugh.
netfriendsinc
ASKER
there is no deploymentlog folder in Temp -- just isn't there, not hidden or otherwise
aravind anche
Don't close the deployment share, just create new TS and with same file and keep TS default. use same customsettings
if this wont work we will do later.
okay sounds good, I do have to modify the TS a bit to tell it where to install the OS and which volume to format etc. I'll get to this tomorrow, gotta run home - thanks for all the help today, check back in the morning!
netfriendsinc
ASKER
Okay I'm back! I've created a new default TS and cleaned it up a touch, modified it to point to the OS and which drive/volume and made the OS partition bootable. I'm going to try it now with the same CS.ini file and see what happens.
netfriendsinc
ASKER
So it took a little longer to image, but the hostname is correct now! However, it still joins the computer to a workgroup and not the domain
ok one worked.
can you remove skipdomain join from cs and run, and give domain name manually
also add recover from domain at end of task sequence
can you post TS screenshot
I don't see domain join in your custom settings.ini
add
JoinDomain =
DomainAdmin =
DomainAdminDomain =
DomainAdminPassword =
add them and try.
Also
MachineObjectOU=ou= Deployment,OU= ,DC= ,DC=com
leave the default unattend.xml