Please help > Sysprep

pedro1985

New member
Local time
4:18 PM
Messages
8
Hi,

I am trying to create a default profile for Windows 7 Professional. After customizing the image, I run "sysprep /audit /generalize /answerfile:c:\answerfile.xml /reboot". In the answerfile I have included the <CopyProfile>1</CopyProfile>

After that the computer restarts and the sysprep windows appears asking me to run OOBE.

When I run OOBE without the generalize switch, the customized profile is not copied to the default profile.

Can anyone explain me the difference between running "syspreb /oobe" with and without the generalize switch?

I tried searching on technet and other forums, but cannot find the answer I am looking for. Thanks for the replies in advance.
 

My Computer

OS
Windows 7 PE 32bit
Sysprep a Windows 7 Machine – Start to Finish - The IT Bros - We Know So You Don't Have To

The important key parts:
Step #9
Install Windows 7 (Enterprise) from CD or USB flash drive, when you arrive at the welcome screen and it asks you to create a username, hit ctrl+shift+f3.
This will reboot your machine and put your windows build in ‘audit’ mode.

Step #10
On reboot, you’ll automatically be logged in under the built-in Administrator account. A sysprep GUI box will appear, but you can close it and NOW begin to customize your profile.

Step #11
Install any software/drivers, make any profile customizations, etc.
If you need to reboot, the computer will boot you back into the Administrator account. You will be stuck in this audit mode until you run sysprep with the /oobe parameter. After doing so, sysprep will delete/clean up the Administrator account, but if you have copyprofile=true in your unattended answer file, it will copy the customized Admin account to the default profile before deleting it.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
The generalize switch allows the image to be used on different hardware. it removes the uniqueness from the machine, (SID's), as well as allowing the specialize computer pass to run which allows system specific drivers and such to be detected and installed.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
Just thinking out loud:
If I got it right.. first you boot into Audit mode, then you install/customize applications and customize a user profile, then you run the the "sysprep /audit /generalize" (no answer file needed now? at this point the customized profile will not be copied to the default profile)

Then after reboot you run "sysprep /oobe /generalize /unattend:answerfile.xml"
Include <copyprofile>1</copyprofile> in the answerfile.
(at this point the customized profile will be copied to the default profile)

Is this correct?

Now there is one question left, on which I cannot find the answer: Why run /generalize twice???
 

My Computer

OS
Windows 7 PE 32bit
You do not run sysprep twice. Leave off "sysprep /audit /generalize"
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
You do not run sysprep twice. Leave off "sysprep /audit /generalize"

Maybe a stupid question, but why is there Audit mode if you don't use it?

And if you have a reason for using Audit, then when does it force you to rerun sysprep with /oobe directly after running sysprep /audit ?

Honestly, I am confused now.... please help me out
 

My Computer

OS
Windows 7 PE 32bit
You can customize the system using audit mode. There are multiple ways to get there.
Customize Windows in Audit Mode

First way is to boot and from Windows Welcome screen, press SHIFT+CTRL+F3. This puts you into audit mode to customize the installation prior to running sysprep

Second way is to run sysprep /audit and it will reboot you into audit mode where you can customize the installation prior to running sysprep
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
You do not run sysprep twice. Leave off "sysprep /audit /generalize"

Maybe a stupid question, but why is there Audit mode if you don't use it?

And if you have a reason for using Audit, then when does it force you to rerun sysprep with /oobe directly after running sysprep /audit ?

Honestly, I am confused now.... please help me out

Install Windows as you normally would. When you come to the point where you create the first user. Do this: hit CTRL + SHIFT + F3, this will put you into Audit mode.

Then you customize everything you want then use:
sysprep /generalize /oobe /shutdown /unattend:unattend.xml


DO NOT make your changes and then run sysprep /audit /generalize, that would remove all your changes.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Alright, so I think I got the idea about how sysprep works. So now I just run this command:
sysprep /oobe /generalize /unattend:unattend.xml

The unattended file runs good, because I find this file in the C:\windows\panther\unattend.xml (the log file)

==================================

<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize" wasPassProcessed="true">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CopyProfile>true</CopyProfile>
</component>
</settings>
</unattend>

==================================

As you can see in the log file above it states: <settings pass="specialize" wasPassProcessed="true">
And, as far I think I understand sysprep, the <CopyProfile>true</CopyProfile> is run during the Specialize phase.

But the customized user profile I created (I started sysprep from within that user profile) wasnt copied to the default user profile. What am I doing wrong?
 

My Computer

OS
Windows 7 PE 32bit
Back
Top