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: Please help > Sysprep


28 Feb 2011   #1

Windows 7 PE 32bit
 
 
Please help > Sysprep

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 System SpecsSystem Spec
.

28 Feb 2011   #2

Windows 8.1 Pro (x64)
 
 

Sysprep a Windows 7 Machine €“ Start to Finish - The IT Bros - We Know So You Don't Have To

The important key parts:
Quote:
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 System SpecsSystem Spec
28 Feb 2011   #3

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.


28 Feb 2011   #4

Windows 7 PE 32bit
 
 

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 System SpecsSystem Spec
28 Feb 2011   #5

Windows 8.1 Pro (x64)
 
 

You do not run sysprep twice. Leave off "sysprep /audit /generalize"
My System SpecsSystem Spec
28 Feb 2011   #6

Windows 7 PE 32bit
 
 

Quote   Quote: Originally Posted by logicearth View Post
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 System SpecsSystem Spec
28 Feb 2011   #7

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
28 Feb 2011   #8

Windows 8.1 Pro (x64)
 
 

Quote   Quote: Originally Posted by pedro1985 View Post
Quote   Quote: Originally Posted by logicearth View Post
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 System SpecsSystem Spec
28 Feb 2011   #9

Windows 7 PE 32bit
 
 

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 System SpecsSystem Spec
Reply

 Please help > Sysprep




Thread Tools



Similar help and support threads for2: Please help > Sysprep
Thread Forum
Sysprep - Windows 7 - unable to sysprep image that joins domain Virtualization
Sysprep hell: sysprep windows setup could not configure windows to run Installation & Setup
win7 after sysprep reboot always with sysprep box Installation & Setup
Sysprep? General Discussion
Sysprep Installation & Setup
How many sysprep's? General Discussion
Help with Sysprep! 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 08:14 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33