Discussion Autologin after sysprep

  • Wednesday, October 03, 2012 12:21 PM
     
     

    Can someone have a look & tell me what is wrong with the below sysprep unattend.xml please. I am trying to get my thin client to autologon after rebuild but I either get errors stating incorrect value in files or black screen with mouse pointer on I cannot get it to complete & then autologin. Thanks in advance

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:ew="urn:schemas-microsoft-com:embedded.unattend.internal.v1">
        <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-EmbeddedEdition" version="6.1.7600.16385" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <ew:packageInfo releaseType="Product" customInfoVersion="1.0" />
            </package>
        </servicing>
        <settings pass="generalize">
            <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
                <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
            </component>
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Home_Page>http://www.hp.com</Home_Page>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>*</ComputerName>
                <RegisteredOwner>HP</RegisteredOwner>
                <CopyProfile>true</CopyProfile>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <Path>net user Administrateur /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <Path>net user Administrador /active:yes</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-GB</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:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <OOBE>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>tempaccount</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>tempaccount</Name>
                            <DisplayName>tempaccount</DisplayName>
                            <Group>Users</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <TimeZone>GMT Standard Time</TimeZone>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ExtendOSPartition>
                    <Extend>true</Extend>
                </ExtendOSPartition>
            </component>
        </settings>
        <ew:answerFileInfo distributionSharePath="C:\Program Files (x86)\Windows Embedded Standard 2011\DS" footprint="576716800" ecoreFootprint="576716800" />
    </unattend>

    This is what I want to add in but it errors as explained above.

    <AutoLogon>
                    <Password>
                        <Value>T51otH1n6L1eNt</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>1</LogonCount>
                    <Username>Administrator</Username>
                </AutoLogon>


All Replies

  • Wednesday, October 03, 2012 8:29 PM
     
     

    So you are with HP?!

    Are you editing the XML file directly? It is better to use ICE to create the Sysprep unattended file.

    -Sean


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Monday, October 08, 2012 9:12 AM
     
     
    I am editing it directly. I try & load it into Microsoft developer toolkit but gives me an error......
  • Monday, October 08, 2012 2:07 PM
     
     
  • Monday, October 08, 2012 3:43 PM
     
     

    If you edited the XML file, you might have broke something, which would explain why the XML didn't work. You need to re-create the sysprep file from scratch in ICE.The 2nd edtion of my book covers this better: http://www.annabooks.com/Book_PGWES7.html

    -Sean


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Thursday, October 11, 2012 7:29 AM
     
      Has Code

    that error tells you where you broke it.

    Really, don't edit xml by hand, that way lies premature grey hair.

    download XML Notepad 2007 from M$ if you must play with XML. That keeps everything syntactically correct.

    (That is what I did to make my unattend.xml)

    Oh, autologon is in product -> shell setup -> AutoLogon  use that instead of the BFI method.

    You'll find something like this in 

    settings

    pass = specialize

    component = Microsoft-Windows-Shell-Setup

    <AutoLogon xmlns="urn:schemas-microsoft-com:unattend">
    <Password>
    <Value>Magical-Crypted-Password</Value>
    <PlainText>false</PlainText>
    </Password>
    <Username>Seagoon</Username>
    <Enabled>true</Enabled>
    </AutoLogon>

    ps: I only have the first edition book, it has served its purpose just fine!


    =^x^=


    • Edited by P E Thursday, October 11, 2012 7:30 AM
    •