Jump to content


Herwin_D

Muliple Domains in Task sequence

Recommended Posts

Hello,

 

Next problem I know I'm going to run into:

 

I want to deploy machines with a TS, making a TS and add the computer to a domain is easy. but I want to be able to or choose the domain where the server is going to belong to, or want to that the TS sees the first part of the machine name, and knows to which domain the machine is going to belong to.

 

I know how to set computername before start of OSD, is it also possible to have that kind of input for domain membership? (OSDDomainName or so..) Or have a dropdown list to choose domain

 

Please advice

 

Thanks!

 

Herwin

 

 

Share this post


Link to post
Share on other sites

No probs, but the question here is how will you determine what domain a server goes to?

 

If you opt to have a choice of domain during the task sequence using the UDI wizard then its simple. You use the UDI designer and add both domains.

 

If however you are not using UDI how will you program the task sequence to determine which domain the server should go to? An example of how to do this would be based on computername as you mentioned. So if a run the task sequence and set my computername to 123ABC then i can put a condition on the 1st "apply network settings" saying if computername is like "123%" then join to domain A.

 

Then on my 2nd "Apply network settings" step i add a condition saying if computername is like "456%" then join to domain B. See what i mean?

Share this post


Link to post
Share on other sites

You can use the 'OSDDomainName' variable. If you pair these with 'OSDJoinAccount', 'OSDJoinPassword', and 'OSDDomainOUName' then it will make any builds dynamic. These will override any settings you use in the 'Apply Network Settings' step so you don't need to add an additional step in for that. You would need to use a front end of sorts or just have those as blank variables on the collection that the machine is in and you will be given the option to fill them in, which is what we currently do.

 

 

Share this post


Link to post
Share on other sites

Tregelen, can you please clarify that? On my collection I have the variable OSDComputerName, do I need to put all those other values also there? And if I do, how is it dynamic, do i need to type the whole DC=,ou= etc? i now got on the task in sccm the add condition WMI query: SELECT * FROM Win32_ComputerSystem WHERE Name LIKE "cust1%" then the server needs to be joined to cust1 domain, but I believe the computername is set later, (maybe running in minint-....)

Share this post


Link to post
Share on other sites

Yes computer is named shortly after. Instead use the osd computer name variable as your condition.

 

For example...So when you start and decide you want to name the server "cust12345", you condition would be... IF task sequence variable %osdcomptername% is like "cust%" etc

  • Like 2

Share this post


Link to post
Share on other sites

It all depends on where you want to input the information. If you want to type it every time you image a machine put those variables as blank on the collection. What we do is we have one collection for one domain and another collection for our other one. These have one variable each, 'SOE-Domain' which lists one domain or the other. As one of our first steps in the TS we have a 'Set Dynamic Variables' step that sets everything based on the 'SOE-Domain' variable. Sorry that so much is blacked out, we have quite strict privacy restrictions here.

post-27706-0-85087500-1473029610.png

  • Like 1

Share this post


Link to post
Share on other sites

YPCC and Tregelen, Thank you guys for your clear answers!

 

I've tested with domain join, and came up with the following, I moved the Join domain after install sccm client, Now the variable on the task is working and the server is joined to the domain. So in my TS I got a folder, Join domain, and under there i got all jobs for joining different domains, with different computernames!

 

Wil also look into Tregelen his answer, for setting the variables.

 

Again many thanks!!

 

Herwin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.