Link to home
Create AccountLog in
Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

Avatar of Devin Becker
Devin Becker🇺🇸

Auto-Join Domain during Windows 10 install
First things first,

I have a USB that has a Windows Installation Media on it (more specifically it basically has a setup.exe that gets run and starts a refresh or clean install depending on option choices).

Now, what I would like to do is make it so that when this setup.exe runs, during the installation process it can automatically join our domain and active directory so that it is one less step to perform during deployment.

I understand that this could be easily achieved with a simple PowerShell script, which I have already written and is my next best option(that I know of) to automating this process, but in a perfect world I would like to bypass the creation of a local admin account and automatically join the domain.

Thanks in advance.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Thomas UThomas U🇨🇭

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Devin BeckerDevin Becker🇺🇸

ASKER

Thomas,

I will give this a try this morning and see if I can get it to work.

Do you think it is possible to just add an autounattend.xml file to my current installation usb?

Thanks,

Devin Becker

Avatar of Devin BeckerDevin Becker🇺🇸

ASKER

Thomas,

Going through the answer file setup in the guide you linked(https://www.windowscentral.com/how-create-unattended-media-do-automated-installation-windows-10) I have a question regarding product keys.

More specifically how can I "resuse" or "reassign" the product key that the computer already originally had? I basically want to do a clean install on a computer already running windows 10 so that settings and data are reset(after backing up old user data of course). During this process it would be ideal to just "resuse" the product key already on the old windows 10 install

Thanks again,

Devin Becker

Avatar of Thomas UThomas U🇨🇭

Hi Devin

Puhh,  I don't think that works, at least I don't know how. You need to know what key is/was installed. But on newer Computers (branded ones) the key should be stored in the TPM chip anyway. So if you have HP  or Dell ot whatever workstations, you should be fine just installing it without key and then activate it.

Why not using the Windows 10 built-in RESET Settings and then go on from there? Maybe there are solutions for that, If you want to use USB key's to install.
In a bigger enviroment, company wide, then I would think about a deploy solution like "smart deploy" or something like that. Or even an opensource deploysolution, which is able to install and join the domain automatically, the computers are booted from network and voila...can happen in the night...or anytime you want.
If lowcost - maybe the FOG project https://fogproject.org/ is a solution. (I tested that in the past. Worked...but not completely for my needs)
There are many other solutions that will make your life easier, if you have to install multiple Windows machines often.

regards
Thomas

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of aravind anchearavind anche🇺🇸

Are you using any deployment tool?

Avatar of ITguy565ITguy565🇺🇸

@Thomas,

Seems to me that you might be looking more for an application that can backup and do Bare metal restores. Might make more since to create a base OS image with your applications preloaded and then use that standard image to deploy to your workstations. An Application that comes to mind is Acronis Backup and Recovery: https://www.acronis.com/en-us/business/overview/

Once You have done this then restore your files to that base image. Short of that, you are going to have a very hard time transferring all your settings and configurations from the existing installation to the new installation.

You could also attempt to use the USMT User State Migration Tool

https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-overview

Avatar of Devin BeckerDevin Becker🇺🇸

ASKER

I think Thomas' original solution would be the best option, but for my specific scenario, I think either doing a clean install through my USB drive, or as Thomas also suggested, using the windows 10 built in reset option, then running my powershell script, either of which I think will be the best way to "automate" domain joining after creating a local admin account for my use.

Thank you all for the help,

Devin Becker

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.

Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.