+ Post New Thread
Results 1 to 8 of 8
Windows 7 Thread, Automating WDS Deployment using unattended.xml in Technical; Hi, I'm hoping someone can help here. I have a couple of issues with automating WDS using unattended.xml. Firstly, My ...
  1. #1

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Automating WDS Deployment using unattended.xml

    Hi, I'm hoping someone can help here. I have a couple of issues with automating WDS using unattended.xml.

    Firstly, My server is Windows 2008 R2 64bit, I am trying to automate the WinPE phase of WDS. I have associated the the following unattended.xml file to the x86 boot images. However the language is not selected and the username and password is not entered (I have to perform both these tasks manually). The only thing the xml seems to do is choose the partition for where the installation will occour. Here is the xml for the winPe phase

    <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
    <WindowsDeploymentServices>
    <Login>
    <WillShowUI>OnError</WillShowUI>
    <Credentials>
    <Username>wdsadmin</Username>
    <Domain>myschool</Domain>
    <Password>wdspassword</Password>
    </Credentials>
    </Login>
    <ImageSelection>
    <WillShowUI>OnError</WillShowUI>
    <InstallImage>
    <ImageName>Windows 7 Professional SP1</ImageName>
    <ImageGroup>x86 Images</ImageGroup>
    <Filename>Windows7proSP1.wim</Filename>
    </InstallImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>1</PartitionID>
    </InstallTo>
    </ImageSelection>
    </WindowsDeploymentServices>
    <DiskConfiguration>
    <WillShowUI>OnError</WillShowUI>
    <Disk>
    <CreatePartitions>
    <CreatePartition>
    <Order>1</Order>
    <Type>Primary</Type>
    <Extend>true</Extend>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition>
    <Active>true</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>OS</Label>
    <Letter>C</Letter>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    </component>
    <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
    <SetupUILanguage>
    <WillShowUI>OnError</WillShowUI>
    <UILanguage>en-UK</UILanguage>
    </SetupUILanguage>
    <UILanguage>en-UK</UILanguage>
    </component>
    </settings>
    </unattend>

    Does anyone know what the issue might be?

    Secondly, with regards to syspreping a windows 7 machine, I have created an unattended.xml file (from a thread on this website, which I can't find now), using mysysprep and sysprep.cmd, I sysprep the machine and reboot, upon reboot the syprep process asks me to enter a machine name. Once the machine name is supplied, the computer is then added to the domain using the name I supplied, and everything is fine.

    However, If I run sysprep and then restart the computer, boot into winpe and take an image of the machine. I then load the image on another machine using wds, the process happens exactly the same, i.e. it asks me for a name for the computer. However, regardless of what name I supply (name that is less then 16 characters), the computer is joined to the domain using the username I supplied during the WinPE process of WDS. i.e. at the WinPE stage if I use the account WDSAdmin, my computers will be joined to the domain as WDSAdmin1, WDSAdmin2 etc.. whereas if i use the account administrator it names the machine administrator1 administrator2 etc..

    This happens regardless of wheather I try to associate an unattended.xml to the winpe process or not. Here is my xml for the Windows 7 image.

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" 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">
    <InputLocale>en-GB</InputLocale>
    <SystemLocale>en-GB</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-GB</UILanguageFallback>
    <UserLocale>en-GB</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" 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">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>dwBlAGwAYwBvAG0AZQBQAGEAcwBzAHcAbwByAGQA</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Local User</Description>
    <DisplayName>Teacher</DisplayName>
    <Group>administrators</Group>
    <Name>Teacher</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <TimeZone>GMT Standard Time</TimeZone>
    <RegisteredOrganization>myschool</RegisteredOrganization>
    <RegisteredOwner>myschool</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" 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">
    <ProductKey>xxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>
    <ComputerName>%Please input a computer name%</ComputerName>
    <RegisteredOrganization>myschool</RegisteredOrganization>
    <RegisteredOwner>myschool</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>GMT Standard Time</TimeZone>
    </component>
    <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>myschool.local</Domain>
    <Username>WDSADMIN</Username>
    <Password>WDSpassword</Password>
    </Credentials>
    <JoinDomain>myschool.local</JoinDomain>
    </Identification>
    </component>
    </settings>
    <cpifflineImage cpi:source="catalog:c:/windows/system32/sysprep/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Thanks in advance, if anyone can help shed some light into what I'm doing wrong. kind regards, Afzal.

  2. #2
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,424
    Thank Post
    10
    Thanked 488 Times in 428 Posts
    Rep Power
    111
    You need to use en-US for the PE phase (en-GB is fine for the unattended file for the image)

    <UILanguage>en-US</UILanguage>
    <WillShowUI>Never</WillShowUI>
    </SetupUILanguage>
    <UILanguage>en-US</UILanguage>

    The boot WIM does not contain en-GB so it is not a valid language choice at that time.

  3. #3

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    im using the boot.wim from the windows 7 sp1 cd. It requires me to manually provide the language setting, the the en-uk (en-gb) option available. Also this is one aspect of the xml that isn't working, the other one is supplying the username and password.

    this part also does not work. Many thanks.

  4. #4

    Join Date
    May 2007
    Location
    Birmingham
    Posts
    169
    Thank Post
    9
    Thanked 45 Times in 36 Posts
    Rep Power
    27
    Hi This is mine and it works just change xxxxxxxxxxxxxx to what every yours is


    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" 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">
    <SetupUILanguage>
    <UILanguage>en-US</UILanguage>
    </SetupUILanguage>
    <InputLocale>0809:00000809</InputLocale>
    <SystemLocale>en-GB</SystemLocale>
    <UserLocale>en-GB</UserLocale>
    </component>
    <component name="Microsoft-Windows-Setup" 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">
    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Type>Primary</Type>
    <Extend>true</Extend>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition wcm:action="add">
    <Order>1</Order>
    <Active>true</Active>
    <Extend>false</Extend>
    <Format>NTFS</Format>
    <Label>xxxxxxxxxxxxxxxxxx</Label>
    <Letter>C</Letter>
    <PartitionID>1</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    <WindowsDeploymentServices>
    <ImageSelection>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>1</PartitionID>
    </InstallTo>
    <InstallImage>
    <ImageGroup>xxxxxxxxxxx</ImageGroup>
    <ImageName>xxxxxxxxxxxx</ImageName>
    <Filename>xxxxxxxxxxxxx</Filename>
    </InstallImage>
    </ImageSelection>
    <Login>
    <Credentials>
    <Domain>xxxxxxx</Domain>
    <Password>xxxxxxxx</Password>
    <Username>xxxxxxxx</Username>
    </Credentials>
    </Login>
    </WindowsDeploymentServices>
    </component>
    </settings>
    <cpifflineImage cpi:source="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Last edited by JOrdan01070; 24th May 2012 at 03:27 PM.

  5. Thanks to JOrdan01070 from:

    theforce (25th May 2012)

  6. #5

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    the unattend.xml for pe worked a treat. are you automating joing computers to the domain. The second phase of my deployment is running a syspreped widnows 7 image an unattend.xml that asks for the machine name before joining the machine with the supplied name.

    The prompt for a machine name comes up but regardless of what I type it joings the domain using username# (with username being the one supplied in unattend.xml for pe).

    thanks in advance.

  7. #6

    Join Date
    May 2007
    Location
    Birmingham
    Posts
    169
    Thank Post
    9
    Thanked 45 Times in 36 Posts
    Rep Power
    27
    I have automated the computers joining the domain but i am using the install.wim image below is my ImageUnattend.xml. just replace xxxxxxxxxxxxx with your own.

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" 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">
    <RegisteredOrganization>xxxxx</RegisteredOrganization>
    <RegisteredOwner>xxxxx</RegisteredOwner>
    <TimeZone>GMT Standard Time</TimeZone>
    <ShowWindowsLive>false</ShowWindowsLive>
    </component>
    <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>
    <JoinDomain>xxxxxxxxxxx</JoinDomain>
    <UnsecureJoin>true</UnsecureJoin>
    </Identification>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" 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">
    <InputLocale>0809:00000809</InputLocale>
    <SystemLocale>en-GB</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UserLocale>en-GB</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" 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">
    <OOBE>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>xxxxxxxxxxxxxxxxxxxxxx</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <DisplayName>xxxxxxxxxx</DisplayName>
    <Group>Administrators</Group>
    <Name>xxxxxxx</Name>
    <Password>
    <Value>xxxxxxxxxxxxxxx</Value>
    <PlainText>false</PlainText>
    </Password>
    </LocalAccount>
    </LocalAccounts>
    <DomainAccounts>
    <DomainAccountList wcm:action="add">
    <Domain>xxxxxxxxxxxx</Domain>
    <DomainAccount wcm:action="add">
    <Group>Domain Admins</Group>
    <Name>xxxxxxxx</Name>
    </DomainAccount>
    </DomainAccountList>
    </DomainAccounts>
    </UserAccounts>
    <RegisteredOrganization>xxxxxxx</RegisteredOrganization>
    <RegisteredOwner>xxxxxx</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>GMT Standard Time</TimeZone>
    </component>
    </settings>
    <cpifflineImage cpi:source="xxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  8. #7

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi J0rdan01070, couple of questions if you didn't mind,

    1. How are you adding your product key, I'm assuming you do this manually becuase you haven't added the product key field to your xml.

    2. Is it prompting you for a computer name during the installation? I read on ms technet website that if you remove computer name feild, it will prompt you for a compater name.

    Thanks in advance.

  9. #8

    Join Date
    May 2007
    Location
    Birmingham
    Posts
    169
    Thank Post
    9
    Thanked 45 Times in 36 Posts
    Rep Power
    27
    I am using a KMS server so don't need to add the product key, as for the computer name that is done through WDS in the AD DS tab in properties.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 17th May 2011, 10:03 AM
  2. windows 7 WDS unattend.xml files not working!
    By staylor1972 in forum O/S Deployment
    Replies: 11
    Last Post: 15th February 2011, 11:01 AM
  3. [WDS] Win 7 unattend.xml help
    By Ste_Harve in forum O/S Deployment
    Replies: 5
    Last Post: 1st February 2010, 01:51 PM
  4. Replies: 3
    Last Post: 20th August 2009, 08:24 AM
  5. WDS - Unattended.xml has anyone got one?
    By Dos_Box in forum Windows Server 2008
    Replies: 2
    Last Post: 20th February 2008, 03:49 PM

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
  •