New Question
0

Windows 10 Domain Join

asked 2020-03-26 12:09:25 +0300

Thomas Glanzmann gravatar image

Hello, I have a Windows 10. I would like to sysprep it, set the hostname, and join it to a domain with that hostname. Is that possible with cloudinit-base Windows? If so, how? I would like to retrieve the meta data (mainly the hostname) from a webserver.

Cheers, Thomas

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2020-04-04 16:32:10 +0300

avladu gravatar image

Hello,

The domain join is possible with cloudbase-init. There are a few ways to achieve this, depending on what are your security requirements.

You can use the userdata or local scripts plugin to perform the domain join, but in this case the domain join username and password is exposed in clear text.

Another way is to use the offline domain join: https://docs.microsoft.com/en-us/wind... . In this case you need to create externally the domain job blob for each machine and then set it in the userdata / local scripts, which can be cumbersome.

You can use the sysprep domain join, where you set the domain join credentials in the specialize section of the Unattend.xml used for sysprep. This has the issue of changing the hostname afterward.

A good trade off would be to use local scripts plugin, which executes a cmd or PS file from the image at boot. In the local script you can use the credentials in plain text to join the domain and then you remove the local script from the local's script code itself. Still, the plaintext credentials can be exposed if your script fails.

This questions has been already answered here too: https://ask.cloudbase.it/question/246...

Thank you,
Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-03-26 12:09:25 +0300

Seen: 59 times

Last updated: Apr 04