+ Post New Thread
Results 1 to 5 of 5
O/S Deployment Thread, Win7 unattend.xml not working correctly in Technical; Hi, I've been trying for the past few weeks to get my unattend.xml file to first ask for a computer ...
  1. #1

    Join Date
    Jul 2010
    Posts
    60
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Win7 unattend.xml not working correctly

    Hi,

    I've been trying for the past few weeks to get my unattend.xml file to first ask for a computer name, then log on with admin to auto activate windows and join my domain before then restarting.

    I thought I had got this working as I wanted but it appears not. The computer I was imaging, I ran sysprep and shut down the computer. Restarted and sent it up to WDS with no problems. Upon restarting the computer booted up and went through the motions as I wanted; ask for computer name, log on with admin, activate and join domain then restart. Everyone was perfect.
    When I send this image down to another laptop it does not work! It automatically names the computer 'administrator' and disables the local admin account (it's told to enable in unattend) and doesn't activate but does join domain.

    If anyone knows why or can offer any help it would be much appreciated, thanks.

    Here is my unattend file:

    Code:
    <?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-GB</UILanguage>
                </SetupUILanguage>
                <InputLocale>en-GB</InputLocale>
                <UILanguage>en-GB</UILanguage>
                <UserLocale>en-GB</UserLocale>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Deployment" 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">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>activates local admin</Description>
                        <Order>1</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </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">
                <CopyProfile>true</CopyProfile>
                <ProductKey>XXXXXXXXXXXXXXXX</ProductKey>
                <RegisteredOrganization>Turnford</RegisteredOrganization>
                <RegisteredOwner>Turnford</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
            </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>en-GB</InputLocale>
                <SystemLocale>en-GB</SystemLocale>
                <UILanguage>en-GB</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">
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe c:\windows\system32\sysprep\join.vbs</CommandLine>
                        <Description>join domain</Description>
                        <Order>3</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>cscript.exe c:\windows\system32\slmgr.vbs /ato</CommandLine>
                        <Description>activate windows</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
    		<SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>c:\wireless.cmd</CommandLine>
                        <Description>set wireless settings</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>TgA0AHIAbgAxAEEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TgA0AHIAbgAxAEEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local administrator</Description>
                            <DisplayName>administrator</DisplayName>
                            <Group>administrators</Group>
                            <Name>administrator</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <RegisteredOrganization>Turnford</RegisteredOrganization>
                <RegisteredOwner>Turnford</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>GMT Standard Time</TimeZone>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog://tntwds/deploymentshare$/operating systems/windows 7 x86/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,580
    Thank Post
    228
    Thanked 854 Times in 733 Posts
    Rep Power
    295
    you need tro attach your sysprep.xml file to the image in wds

    if you slect the image and right click properties tick the "allow image to install in unattended mode" box and select your sysprep file

  3. 2 Thanks to sted:

    jamin100 (17th July 2012), profit10 (17th July 2012)

  4. #3

    Join Date
    Jul 2010
    Posts
    60
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    is that all there is to it? When you say sysprep file, do you mean unattend.xml ?

    Thanks

  5. #4


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,580
    Thank Post
    228
    Thanked 854 Times in 733 Posts
    Rep Power
    295
    Quote Originally Posted by profit10 View Post
    is that all there is to it? When you say sysprep file, do you mean unattend.xml ?

    Thanks
    yes and yes

  6. #5

    Join Date
    Jul 2010
    Posts
    60
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    works, thankyou.

SHARE:
+ Post New Thread

Similar Threads

  1. 2 network connections, 1 not working correctly (DNS)
    By HodgeHi in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 1st February 2012, 08:12 PM
  2. Win7 Unattend.xml Not Being Applied
    By djameson in forum O/S Deployment
    Replies: 36
    Last Post: 4th March 2011, 01:41 PM
  3. Replies: 15
    Last Post: 2nd February 2011, 01:08 PM
  4. unattend.xml not running on a custom syspreped image??
    By burgemaster in forum Windows 7
    Replies: 2
    Last Post: 25th March 2010, 10:21 AM

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
  •