Herwin_D Posted September 1, 2016 Report post Posted September 1, 2016 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 Quote Share this post Link to post Share on other sites More sharing options...
YPCC Posted September 1, 2016 Report post Posted September 1, 2016 You can simply add another "apply network settings" step and attach a condition to it (and your original step) If condition A is successful it joins dommain A. If condition B is successful it joins domain B Quote Share this post Link to post Share on other sites More sharing options...
Herwin_D Posted September 1, 2016 Report post Posted September 1, 2016 YPCC Thanks for your answer, but in my opinion this does not answer my question, how can choose or force which domain the server is going to belong to. So maybe before the OSD task a menu where to put domain name. Quote Share this post Link to post Share on other sites More sharing options...
YPCC Posted September 1, 2016 Report post Posted September 1, 2016 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? Quote Share this post Link to post Share on other sites More sharing options...
tregelen Posted September 1, 2016 Report post Posted September 1, 2016 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. Quote Share this post Link to post Share on other sites More sharing options...
Herwin_D Posted September 2, 2016 Report post Posted September 2, 2016 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-....) Quote Share this post Link to post Share on other sites More sharing options...
YPCC Posted September 3, 2016 Report post Posted September 3, 2016 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 2 Quote Share this post Link to post Share on other sites More sharing options...
tregelen Posted September 4, 2016 Report post Posted September 4, 2016 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. 1 Quote Share this post Link to post Share on other sites More sharing options...
Herwin_D Posted September 5, 2016 Report post Posted September 5, 2016 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 Quote Share this post Link to post Share on other sites More sharing options...