/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Wrong Password prompt on Sysprep boot for Administrator account

10/21/2016 2753 views
Upon boot i want my system to go straight to the desktop of the Administrator account.
I thought i had everything covered but apparently not. The image does stay at a black screen for a while upon boot after prelim windows is setting up.... screens.

What i actually get is all the way (after the 2minute black screen) to the windows logon screen with the Administrator account name type in but
it promts that the "password is incorrect". If i say ok and manually type the password it works....

Can anyone help?

My XML below:

<?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>
            <UserLocale>en-GB</UserLocale>
            <UILanguageFallback>en-GB</UILanguageFallback>
        </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">
            <AutoLogon>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
                <LogonCount>1</LogonCount>
            </AutoLogon>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>TwBtAG4AMQBjADAANQByADAAdQBwAKMAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>TwBtAG4AMQBjADAANQByADAAdQBwAKMAUABhAHMAcwB3AG8AcgBkAA==</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Name>Administrator</Name>
                        <Group>Administrators</Group>
                        <DisplayName>Administrator</DisplayName>
                        <Description>admin</Description>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <TimeZone>GMT Standard Time</TimeZone>
        </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">
            <ComputerName>NT9999-COMBO</ComputerName>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-PnpSysprep" 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">
            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
            <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:c:/users/markw/desktop/posready 7.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

1
this sets the administrator active, by default it is not active

 <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">
<Path>net user administrator /active:yes</Path>
<Order>1</Order>
</RunSynchronousCommand>
</RunSynchronous>
</component>

Answered 10/24/2016 by: SMal.tmcc
Red Belt

  • Thanks! This helped me out no end.

All Answers

0
your problem lies in you are not passing any password to the autologon.

yours

<AutoLogon>

                <Enabled>true</Enabled>

                <Username>Administrator</Username>

                <LogonCount>1</LogonCount>

            </AutoLogon>


typical

 <AutoLogon>
                <Password>
                    <Value>TwBtAG4AMQBjADAANQByADAAdQBwAKMAUABhAHMAcwB3AG8AcgBkAA===</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>administrator</Username>
            </AutoLogon>


Also you should not name the secondary account administrator like your are doing, should be more like"

<UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <PlainText>false</PlainText>
                            <Value>TABJAE4AsdfaasgdsaAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        </Password>
                        <DisplayName>F11Master</DisplayName>
                        <Name>F11Master</Name>
                    </LocalAccount>
                </LocalAccounts>
                <AdministratorPassword>
                    <PlainText>false</PlainText>
                    <Value>QgByAGEAdAB3AHUAcgAkAHQskjlasdfkvbfbshgb;zjxcklvnsxhdfhj8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
                </AdministratorPassword>
            </UserAccounts>


Answered 10/21/2016 by: SMal.tmcc
Red Belt

  • Thanks for the response, im using WSIM to generate the xml. So if i make the change to the first section you commented on ill get autologon.

    The local account i am creating with the same name "administrator" was something i was told to do to get the default admin renabled.

    Is this section not needed then? as i only need the default admin account.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ