SYSPREP and user accounts.

csand

New member
Local time
1:27 PM
Messages
2
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 Computer

OS
win 8
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.

Kari
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
SORRY!

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.

Kari
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
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 :D
 

My Computer

OS
win 8
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.

Site technet.microsoft.com

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 Computer

OS
Windows 7 Ultimate x64
Back
Top