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: SYSPREP and user accounts.

03 Dec 2012   #1

win 8
SYSPREP and user accounts.

Hi everyone,

so I have my custom windows 7 image ready for deployment, but it has to be sysprepped so the OOBE pops up when it is first run. However I want to keep a custom password protected user account (let's call it "Tech") available, and hidden with the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
with a DWORD "Tech" set to 0

is this possible using unattend.xml? If so what are the entries that I would put in? I have tried adding them to the autounattend.xml I created for the install however sysprep the account and registry entry don't seem to be being created. Or is there some other way to do it?

Any help would be appreciated

My System SpecsSystem Spec
03 Dec 2012   #2


Hi Csand, welcome to the Seven Forums.

Might be me misunderstanding something but why on earth would you manually edit register for that? Customize your image in Audit Mode, create your user Tech & set a password, run sysprep and deploy. As long as you do not use Generalize switch when sysprepping, it does not affect existing user profiles so the Tech profile remains on your image and exists on any deployed system.

My System SpecsSystem Spec
03 Dec 2012   #3



I just read your post again and noticed what I did not notice first time, that you want the Tech account to be hidden.

Create the user account & password normally in Audit Mode, edit registry to hide the account, run sysprep, deploy. That's it.

The point is you do not need to set register value in answer file, you can do it in Audit Mode normally with RegEdit before running sysprep.

My System SpecsSystem Spec

03 Dec 2012   #4

win 8

Ahh thank you sir! I didn't realize that by removing the generalize option it would keep user accounts. Will the OOBE window still come up for the user to create a new login? What other things will I miss by not including the generalize option? I'm learning all this stuff in a short amount of time for work so pardon any silly questions.
Thanks so much for the info, and the welcome
My System SpecsSystem Spec
04 Dec 2012   #5

Windows 7 Ultimate x64

Maybe I have misunderstood sysprep but the generalize option has nothing to do with user profiles.
I have never had a sysprep remove a user account.


Prepares the Windows installation to be imaged. If this option is specified, all unique system information is removed from the Windows installation. The security ID (SID) resets, any system restore points are cleared, and event logs are deleted.
The next time the computer starts, the specialize configuration pass runs. A new security ID (SID) is created, and the clock for Windows activation resets, if the clock has not already been reset three times.

To remove a user account you would need to use the /audit switch. On install screen open the command prompt (shift + f3) and delete them from there then sysprep again.
My System SpecsSystem Spec

 SYSPREP and user accounts.

Thread Tools

Similar help and support threads
Thread Forum
Recovering user post sysprep
I done a sysprep due to changing motherboard, and now my user "fabricio" has another user inside called "fabricio.fabricio-pc" Windows is logging from the latter, which doesn't have my documents, settings. On Account settings i only see 1 profile. How do i get my old one with it's settings back?...
Installation & Setup
Unknown user showing in user accounts - possibly compromised?
Hi all, Hoping someone might be able to help. Recently, a few strange things have happened with the PC, which first started when I found I couldn't use the Backup & Recovery software in Windows 7. Whenever I clicked on one of the buttons with a shield, nothing would happen at all. I've looked...
System Security
User accounts created but not able to logon - No user profile
I am a lab technician for Microsoft classes at a community college. One of our students somehow messed up his hard drive. The computer is running Windows 7 Enterprise SP1 64-bit. The system has two administrator accounts and one standard user account. I am still able to logon with those accounts...
General Discussion
User Confused After Easy Transfer Then SysPrep
I Easy Transferred a users old computer to her new one and now she can't find her mail, desktop, files etc. Did I cobbler her profiles when I syspreped her new cpu before giving it to her ? (I have yet to get my hands on it to see what happened ).
Installation & Setup
User Accounts / Manage Accounts Blank
Hello I have been chasing up an answer to this problem for a couple of weeks now and have found a number of people with same symptoms but no answer which works. When I go to the User Accouns page the dialog box for the "Choose the Account you would like to change" is blank. I am an...
General Discussion

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 14:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App