WDS deployed image of Windows 7 not joining domain

5,159

If I'm understanding your question correctly, you should set the computer name in the unattend file to %MACHINENAME%, which is the variable used during setup when it finds a match by NetbootGUID in AD.

You'll also need to use valid credentials in the Unattended Join section. They should be able to overwrite computer objects (delete and create).

Share:
5,159

Related videos on Youtube

TuxMeister
Author by

TuxMeister

Coding aficionado, always trying out new things. Love hardware and software integrations. Most challenging thing yet: moving to another country for the second time.

Updated on September 18, 2022

Comments

  • TuxMeister
    TuxMeister over 1 year

    I would like for someone to chip in and take a look at these files and let me know if I'm doing something wrong. I'm running a test environment with Win2k8 R2 with WDS, AD DS, DNS and DHCP in VirtualBox plus a testing client W/S in VirtualBox and an extra HP workstation for physical testing.

    I have gotten the Client unattended file to work properly for both WDS boot and install stages. It does a couple of branding operations and basically setting locale and skipping the Welcome stage.

    Both workstations are pre-stages in AD as PC1 and PC2 based on their GUID. When I use the WDS boot unattended file only, the computer appears joined to the domain with its previous Computer Name, as per Microsoft's documentation, that explains that by default, all pre-staged workstations will be re-joined after deployment is finished. However this stops happening as soon as I enable the client-side Unattended file.

    I have followed Microsoft's instructions from the help files on how to go about re-joining the computers in AD using the client side Unattended file and using UnsecureJoin set to False. However, the machines don't join the domain, in fact this indicates it's not even looking in the AD OU, just generating the Computer Name off of the information included in Shell-Setup.

    2012-08-27 14:01:04, Info                         [Shell Unattend] ComputerName: generating computer name from user name
    

    OOBE Unattended file XML

    Client side log from Panther folder

    I'm clueless now and I think I've exhausted every troubleshooting that I can think of. I've read forum post after forum post trying to figure out what's wrong with my file and all of the relevant answers I could find point directly back at the way I'm using the implementation.

    Can anyone help?

  • TuxMeister
    TuxMeister over 11 years
    I'll give that a go, thanks! So basically, where the field is blank and where before I was using "*" for a random name, I should use %MACHINENAME% and that will pick it up from AD?
  • MDMarra
    MDMarra over 11 years
    Yup, it will as long as the netbootguid attribute matches.
  • TuxMeister
    TuxMeister over 11 years
    Not working, here's my newest OOBEUnatted.xml file: XML
  • MDMarra
    MDMarra over 11 years
    What does "not working" mean? What errors are you getting? Is that Administrator account the domain admin?
  • TuxMeister
    TuxMeister over 11 years
    Yes, that account is the domain admin and by not working, I mean it's not joining it to the domain. Computer still completes deployment with a randomly generated machine name.
  • MDMarra
    MDMarra over 11 years
    These computers are pre-staged with the computer accounts having the netbootguid attribute set before they are imaged, correct?
  • TuxMeister
    TuxMeister over 11 years
    Yes, that's correct. Furthermore, looking into the general Install log, at the very end it says no special join actions will be performed, event though a bit further up, it is displaying the correct AD computer information. I have replicated someone else's XML bits regarding Join and I am currently testing again, will report back with more info in about 20 minutes.
  • TuxMeister
    TuxMeister over 11 years
  • MDMarra
    MDMarra over 11 years
    I'm in Comms Room periodically throughout the day. You can try and catch me there. If you need one-on-one attention, send me an email (link in profile) and we'll discuss my per-project rates.
  • TuxMeister
    TuxMeister over 11 years
    Sorry, I only meant to take it out of here since it recommends not to hold huge conversations in the comments area. I got it to work. The problem is that every time I update/modify the client Unattend file, it has to be copied into the image's Unattend folder as well. The XML was linked to the image via the Properties pane in WDS, however it wasn't being copied, so I kept making changes but I've been using the same old XML file from a couple of days back. So now, every time I change something, I have to disable and re-enable unattended on the image so it copies the new version to the folder.