Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: windows 7 sysprep keep asking for username

13 Jan 2015   #11
Kari

Microsoft Community Contributor Award Recipient

 

Yes.

You can create as many users as you want to following the instructions in my previous post. If the passwords are also given in answer file, they will by default (default value for variable <PlainText> is FALSE) be encrypted so even if the answer file remains with the deployed image, the passwords cannot be found out. Here's an extract from an answer file created according to instructions in my previous post, notice the encrypted password:

Script:
<UserAccounts>
                <
LocalAccounts>
                    <
LocalAccount wcm:action="add">
                        <
Password>
                            <
Value>VABpAHQAeQBzAG8AZgB0ADEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                            <
PlainText>false</PlainText>
                        </
Password>
                        <
Description>Main user</Description>
                        <
DisplayName>An Angry Old Man</DisplayName>
                        <
Group>Administrators</Group>
                        <
Name>Kari</Name>
                    </
LocalAccount>
                </
LocalAccounts>
            </
UserAccounts
More about Sysprep and Answer Files, see these two Seven Forums tutorials:
Kari


My System SpecsSystem Spec
.
13 Jan 2015   #12
rkhuprus

Windows 8.1 Enterprise x64
 
 

Below is what i have in my Answer file for Windows 7 Enterprise x64 unattend installation

My goal was to;

Enable Hidden Administrator Account
Auto-activate Windows 7 Enterprise x64
Set the language and input locale settings for the system and the user to "en-us"
Set Registered Organization\Owner Information
Set Timezone to "Central Standard Time"
Bypass or automatic acceptance of End User License Agreement
Only ask for "Computer Name" during initial start-up/setup.


Does the below Answer file fulfill my objective? Should i do something different?

Obviously, I have removed my Product Key and Passwords for security reasons.


Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" 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>
                    <Description>Enable Hidden Administrator Account</Description>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
            <ShowWindowsLive>false</ShowWindowsLive>
            <TimeZone>Central Standard Time</TimeZone>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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-us</InputLocale>
            <SystemLocale>en-us</SystemLocale>
            <UILanguage>en-us</UILanguage>
            <UserLocale>en-us</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
                <LogonCount>5</LogonCount>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                    <Description>Set Product Key</Description>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
                    <Description>Online Activation</Description>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
            <OOBE>
                <NetworkLocation>Other</NetworkLocation>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>XXXXXXXXXXXXX</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>XXXXXXXXXXXXX</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Temporary Local Administrator Account</Description>
                        <Group>Administrators </Group>
                        <DisplayName>Temporary Administrator</DisplayName>
                        <Name>TempAdmin</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <RegisteredOrganization>XXXXXX Organization</RegisteredOrganization>
            <RegisteredOwner>XXXXXX Owner</RegisteredOwner>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/sysprep/win7/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
My System SpecsSystem Spec
13 Jan 2015   #13
Kari

Microsoft Community Contributor Award Recipient

 

A quick read through reveals no errors, also the answer file validates OK. I cannot see any issues.
My System SpecsSystem Spec
.

Reply

 windows 7 sysprep keep asking for username




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Sysprep - Windows 7 - unable to sysprep image that joins domain
Good morning all: Below is my unattend.xml. I am using the sysprep + win7 for creating virtual machines in Red Hat Enterprise Virtualization 3.0 but having difficulty getting them to auto-join the domain. My sysprep progression proceeds normally and completes. The initial boot of the image...
Virtualization
Sysprep failed, Windows 7 Ult. 64 bit, new CPU+MB
Hi all, So I recently bought a new CPU+MB (going from AMD to Intel) to upgrade my system; everything else is staying the same. I ran sysprep.exe and it gave me an error. So I searched around and found out it was the WMP service preventing it from working. So I disabled that and then tried...
General Discussion
win7 after sysprep reboot always with sysprep box
hello, 1st sorry for my english (i'm french guy). I made a sysprep and all parameters are corrects. but after the reboot I have always the sysprep preparation tools box. for me the sysprep is correct but I don't know what's happended. in attachment my unattend.xml
Installation & Setup
Do you really need to sysprep a Windows 7 machine?
Hi, I work in a community college and I we image tons of PCs for classrooms and labs etc. I had been imaging all those labs with sysprep when we were using Windows XP. Now that we are using Windows 7, we decided not to use sysprep as my seniors said its not required if we are using Windows 7....
Installation & Setup
Sysprep help for Windows 7
Hi, We have created a Syspreped image of windows 7 with all the drivers that we need, I have some questions:- 1) When we install the image on a new PC, it doesn't keep the Video driver, I have got around that by putting the install files in C:\temp and then running, is there a way to keep the...
Installation & Setup
Change windows username (ComputerName/Username
I set up my computer a long time ago with a stupid username, and I wanna know how to change it. I can change my logon username, but not the actual username (COMPUTERNAME/Username) or the user directory (C:/Users/USERNAME).
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:49.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App