Windows Thread, JoinDomainOrWorkgroup in Technical; Good evening,
I was just wondering if anyone has used the JoinDomainOrWorkgroup function/command. I am looking at it for a ...
27th August 2009, 08:31 PM #1
I was just wondering if anyone has used the JoinDomainOrWorkgroup function/command. I am looking at it for a possible method to script my XP partitions to join the AD after being re-imaged. I thought a script to lookup the active hardware/mac address and finding the corresponding Hostname, renaming the machine using this looked up hostname and then joining the AD.
Has anyone got an example and possibly a description of what each bit does?
This should be good if i can get it to work. Would be a fully deployed XP/OS X machine from bare-metal to fully up and running.
27th August 2009, 08:43 PM #2
You can use Sysprep to create an answer file so after imaging, your XP machine automatically joins the domain. As for OS X I'm not sure if you can automate it to join a Windows domain. I'm not a Mac expert, but hopefully someone else can help.
I am looking at it for a possible method to script my XP partitions to join the AD after being re-imaged.
27th August 2009, 09:34 PM #3
You certainly can
Mac OS X Manual Page For dsconfigad(8)
dsconfigad -a ThisComputer -u "administrator" -ou "CN=Computers,OU=Engineering,DC=ads,DC=demo,DC=com " -domain domain.ads.apple.com
Last edited by somabc; 27th August 2009 at 09:43 PM.
28th August 2009, 12:58 AM #4
We have ours join our domain, name up as the Dell service tag and then place the computer account in a certain OU rather than the Computers OU.
28th August 2009, 09:08 AM #5
Or you could hack the script at http://www.edugeek.net/wiki/index.ph...tive_Directory a bit to fully automate things.
Originally Posted by somabc
28th August 2009, 08:11 PM #6
I do this as part of the deploystudio imaging process. No scripting needed, just tick a few boxes and enter a few details This suits me well
Originally Posted by Ric_
Do you use the joindomainorworkgroup for this?
If so have you got an example that you could share of the script you use?
29th August 2009, 12:11 AM #7
I'm not sure at the moment as I am now on leave for a week and I dont want to log back in on the laptop to check as I will only get involved doing other bits. When I get chance I will have a look.
9th September 2009, 11:37 AM #8
Just got back into the office and had a look at our sysprep.ini file for networking identification shows the following:
MachineObjectOU = "OU = Sysprep,OU = CTP, OU = Computers, OU = NEL,DC = XNLNELPCT,DC = NHS,DC = UK"
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)