Sysprep WITHOUT creating new user

3

1

I have install a ghost server and i would like to deploy many Windows 7 64 bits. Before creating the master i must sysprep it but i would like to know how to sysprering without create a new user after restart of the computer.

thanks !

inkx

Posted 2014-07-01T13:13:50.060

Reputation: 39

1Why would you need to create a new user? This is the reason accounts like Administrator exist. – Ramhound – 2014-07-01T13:15:32.607

The administrator account is deactivate and and a user named "utilisateur" have the administrator right. So i don't want to create a new user – inkx – 2014-07-01T13:18:25.750

So log into the user that already exists. – Ramhound – 2014-07-01T13:19:36.880

can't, after syspreping computer start like the first time and add tu select your language, time zone, username etc... – inkx – 2014-07-01T13:26:43.033

Answers

3

When at the OOBE setup, pres CTRL+SHIFT+F3 to enter audit mode. You're actually logged into the admin account. From there you can make changes to the system before deployment. You'll likely want to look into building an answerfile for unattended setup and to ensure drivers persist past generalization.

See this resource for more info: Preparing an Image Using Sysprep and ImageX

Colyn1337

Posted 2014-07-01T13:13:50.060

Reputation: 1 191

Anyway to add directly a file like unattend.xml who say "after syspreping don't create user just boot normally" ? – inkx – 2014-07-01T13:23:20.137

1What do you want to happen at "boot normally" - a user, at some point, must be created - unless your machines join to a domain...? – Kinnectus – 2014-08-07T15:16:52.047

2

Create an answer file, and set the following two options to True:

SkipMachineOOBE
SkipUserOOBE

You will find these options in phase 7: oobeSystem, under Microsoft-Windows-Shell-Setup

Update:
You need to edit your unattend.xml file using AIK from Microsoft; to add these two options
Also, you can manually edit the file using notepad
Look for:

<settings pass="oobeSystem">

Then under that section look for:

<component name="Microsoft-Windows-Shell-Setup" ....

Under that section add:

    <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <NetworkLocation>Work</NetworkLocation>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>

ITProStuff

Posted 2014-07-01T13:13:50.060

Reputation: 389

really thanks ! i don't use any software to configure sysprep except sysprep itself.can we do a unattend.xml directly with just this information ? – inkx – 2014-07-01T15:01:02.770

you need to edit your unattend.xml file using AIK tool from Microsoft; to add thus two options – ITProStuff – 2014-07-02T07:07:41.360

Ok thanks but i must use AIK anyway to add manually the .xml file with only OOBE settings and not configure other parameter ? – inkx – 2014-07-02T10:43:54.160

When you open the xml file with AIK tool, it will show you all configured parameters, and allow you to add, delete, change other settings – ITProStuff – 2014-07-02T11:00:30.817

ok but how create the xml file ? – inkx – 2014-07-02T11:59:10.883

Here is a quick tutorial http://theitbros.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish/

– ITProStuff – 2014-07-03T08:00:25.743

@ITProStuff Just a minor correction, but the AIK is not required for building the unattend file. It's simply XML, if you know the tags to use you can (and I do) edit it with just a text editor. – Colyn1337 – 2014-07-03T15:53:40.913

@ITProStuff i saw this tutorial but i would to create it WITHOUT AIK.. @Colyn1337 and i want to do like this but i have no idea what i must put in (except fort the OOBE part now) – inkx – 2014-07-03T20:28:18.477

I use this one windowsafg.no-ip.org to generate simple xml – Gorodeckij Dimitrij – 2017-11-24T22:45:37.030

1

I know that this is an old posting ... but I'm surprised nobody pointed this out sooner. As this is still valid and useful, it should be noted that the two options in the unnattend answer file which should be set to "true" are:

SkipMachineOOBE and SkipUserOOBE

"ITProStuff" erroneously lists SkipMachineOOBE twice ... I'm sure it was simply a typo, but to help others looking for clarity and understanding.

Craig Smith

Posted 2014-07-01T13:13:50.060

Reputation: 11

This is really a comment and not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?

– DavidPostill – 2016-09-01T09:43:01.623

0

Following @ITProStuff answer, here is a minimal unattend.xml file.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <OOBE>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
    </component>
  </settings>
</unattend>

To use it, just add /unattend:[path_to_unattend.xml] to your sysprep command line. Set processorArchitecture to x86 if you make it for a 32bit Windows.

blaniel

Posted 2014-07-01T13:13:50.060

Reputation: 1

On at least windows 10 skipping Machine OOBE will not Change the SID which means the system will have issues when used on a Active Directory Domain. – Nick W. – 2019-03-01T14:36:53.083