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
pedro1985

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
logicearth

Windows 10 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
pparks1

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
pedro1985

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
logicearth

Windows 10 Pro (x64)
 
 

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

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
pparks1

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
logicearth

Windows 10 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
pedro1985

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
Thread Forum
SysPrep Help?
I made a sysprep file with Windows WAK and it giving us issues. We get a "A fatal error occurred while trying to sysprep the machine." This happens when it is "Processing cleanup phase Sysprep plugins..." Here is our file. <?xml version="1.0" encoding="UTF-8"?> -<unattend...
Installation & Setup
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
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
Sysprep?
Hi, First of all I like to say hello, this is my first post here! :party: At moment I am trying to sysprep a customized branded installation of Windows 7 Pro 32Bit. But I dont understand what settings I need in the unattend file. What I want is to use the settings from the local admin...
General Discussion
Sysprep HELP
Hi i try to sysprep a Dell latitude E6400 i install from DVD (normal installation) i create my sysprep anwser file: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component...
General Discussion
How many sysprep's?
Hi. I need a quick answer to a quick question. How many times can Windows 7 be sysprepped before it stops letting me? Situation I'm now in: I have 13 images for 7 departments to build in two weeks on two machines. My process is to build a generic base image on one, sysprep it, up it to the...
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 02:51.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App