Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

unattended xml and domain joining


  • Please log in to reply
7 replies to this topic

#1
i3igi3yrd

i3igi3yrd

    Newbie

  • Member
  • 10 posts
  • Joined 01-February 12
  • OS:Windows 7 x64
  • Country: Country Flag
I know there is an issue with joining a machine to the domain with the unattended xml, but I can't quite get a grasp on it.

I am using Ghost to capture the sysprepped image and deploying via PXE with winPE, so I'm not using any of the .wim images or MS deployment methods.

I'm trying to emulate the same steps that we go through with our existing answer file for XP (seen below).
No prompts during setup except for naming the computer, the admin account enabled, and the machine being joined to the domain.

Any assistance is needed since I'm not familiar with the new System Image Manager.


;SetupMgrTag
[Unattended]
    OemSkipEula=Yes
    InstallFilesPath=C:\sysprep\i386

[SysprepMassStorage]


[GuiUnattended]
    AdminPassword=XXXXX
    OEMSkipRegional=1
    TimeZone=20
    OemSkipWelcome=1

[UserData]
    ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    FullName="Corporate User"
    OrgName="XXXXX Corporation"
    
[Display]
    BitsPerPel=32
    Xresolution=1024
    YResolution=768
    Vrefresh=75

[TapiLocation]
    CountryCode=1
    Dialing=Tone
    AreaCode=205
    LongDistanceAccess="9"

[SetupMgr]
    DistFolder=C:\sysprep\i386
    DistShare=windist

[Identification]
    JoinDomain=Corporate
    DomainAdmin=XXXXX
    DomainAdminPassword=XXXXXX

[Networking]
    InstallDefaultComponents=Yes

Edited by i3igi3yrd, 01 February 2012 - 01:51 PM.



How to remove advertisement from MSFN

#2
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
Use the system image manager, manually creating the Win7 unattend.xml answer file is near impossible. Just use the install.wim from your install media as the reference image when asked.

There is a good blog here with most of the info you would be looking for.

For the domain join you either need to pre-create the computer account in AD and the provided account has rights to join, or supply the OU the machine will be created in and the provided account has rights to create the object and join to it.

#3
i3igi3yrd

i3igi3yrd

    Newbie

  • Member
  • 10 posts
  • Joined 01-February 12
  • OS:Windows 7 x64
  • Country: Country Flag
When we are doing deployments of 200+ machines at a time, creating the objects in AD is not the preferable option. Is there not a scripting option out there?

#4
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
If all of the machines are going into the same OU you won't have a problem, or if you have a staging OU and then move them from there to their permanent OU. Otherwise if you change the <machineobjectOU> value before the machine attempts to do the join you'll be fine. I do this right after applying the image to the machine before rebooting. If you are using Ghost version 11.x you should be able to do the same thing.
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <Credentials>
                    <Domain>contoso.com</Domain>
                    <Password>joinpassword</Password>
                    <Username>joinaccount</Username>
                </Credentials>
                <JoinDomain>contoso.com</JoinDomain>
                <MachineObjectOU>OU=Computers,OU=finance,DC=contoso,DC=com</MachineObjectOU>
            </Identification>        </component>


#5
i3igi3yrd

i3igi3yrd

    Newbie

  • Member
  • 10 posts
  • Joined 01-February 12
  • OS:Windows 7 x64
  • Country: Country Flag
What pass is that in? I'm about to try that now.

#6
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
Specialize

#7
lil754boy

lil754boy
  • Member
  • 1 posts
  • Joined 03-February 12
  • OS:none specified
  • Country: Country Flag
Where is this located. i do not see the string anywhere.

#8
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
In the Windows Image System Manager, load the Install.wim:

Components\
	x86_Microsoft-Windows-UnattendedJoin_6.1.7601.17514_neutral\
		Identification\
			Credentials


Add to pass Specialize




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users