LabBuilder icon indicating copy to clipboard operation
LabBuilder copied to clipboard

Improve Windows 10 Unattend.xml for Enabling Administrator account

Open PlagueHO opened this issue 8 years ago • 3 comments

Currently the Unattend.xml section for enabling the Windows 10 account is:

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

However the following might be better code:

<AutoLogon>
         <Password>
            <Value>SecurePasswd123</Value> 
            <PlainText>true</PlainText> 
         </Password>
         <Username>Administrator</Username> 
         <Enabled>true</Enabled> 
         <LogonCount>5</LogonCount> 
</AutoLogon>

PlagueHO avatar May 22 '16 03:05 PlagueHO

Auto login bypasses the first logon prompt but then requires a password after the first login. One nice benefit is that it doesn't take 5 minutes to login the first time. At least this is what I've observed so far with my testing. Maybe provide an option for auto login?

duffney avatar May 23 '16 00:05 duffney

Cool! I'm all for that. Sounds like a better option. I'll make the change!

PlagueHO avatar May 23 '16 09:05 PlagueHO

@PlagueHO - I think this has been fixed and can be closed.

bruckect avatar Feb 10 '20 06:02 bruckect