+ Post New Thread
Results 1 to 8 of 8
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 ...
  1. #1

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    JoinDomainOrWorkgroup

    Good evening,

    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.

    TIA

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,241
    Thank Post
    239
    Thanked 1,567 Times in 1,249 Posts
    Rep Power
    339
    I am looking at it for a possible method to script my XP partitions to join the AD after being re-imaged.
    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.

  3. #3
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    You certainly can

    Mac OS X Manual Page For dsconfigad(8)

    eg


    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.

  4. #4

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    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.

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    Quote Originally Posted by somabc View Post
    You certainly can

    Mac OS X Manual Page For dsconfigad(8)

    eg


    dsconfigad -a ThisComputer -u "administrator" -ou "CN=Computers,OU=Engineering,DC=ads,DC=demo,DC=com " -domain domain.ads.apple.com
    Or you could hack the script at http://www.edugeek.net/wiki/index.ph...tive_Directory a bit to fully automate things.

  6. #6

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    Quote Originally Posted by Ric_ View Post
    Or you could hack the script at http://www.edugeek.net/wiki/index.ph...tive_Directory a bit to fully automate things.
    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

    @MatthewL

    Do you use the joindomainorworkgroup for this?

    If so have you got an example that you could share of the script you use?

  7. #7

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    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.

  8. #8

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,154
    Thank Post
    12
    Thanked 224 Times in 214 Posts
    Rep Power
    66
    Just got back into the office and had a look at our sysprep.ini file for networking identification shows the following:

    Code:
    [Identification]
        JoinDomain=xnlnelpct.nhs.uk
        DomainAdmin=xnlnelpct\oursysprepusername
        DomainAdminPassword=ourpassword!
        MachineObjectOU = "OU = Sysprep,OU = CTP, OU = Computers, OU = NEL,DC = XNLNELPCT,DC = NHS,DC = UK"

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •