Freigeben über


Automating the OOBE process during Windows Server 2008 Sysprep Mini-Setup

 

One of the more common questions we have with Windows Server 2008 deployment revolves around the basic components needed in our answer file to automate the OOBE process during Sysprep mini-setup.

Let’s start out with a few basic facts.

· Sysprep is no longer in the deploy.cab on the operating system CD. Instead, it’s installed by default to %systemroot%\system32\sysprep.

· The options for Sysprep have changed from those available in legacy operating systems such as Windows Server 2003 and Windows XP. 

clip_image002

      clip_image004

· The common switches you will need to use are OOBE, Generalize, and Shutdown.  Generalize is a required switch for the majority of scenarios.

 

· All answer files for Windows Server 2008 and Windows Vista are created with Windows System Image Manager. Windows System Image Manager is installed as part of the Windows Automated Installation Kit. This can be downloaded from the Microsoft Download Center at the following location:

https://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&DisplayLang=en

When first opening Windows System Image Manager, you must first select a Windows image or catalog file. Contrary to popular belief, one does not have to generate a catalog for the install.wim. A quicker practice is to use the catalog files included on the Windows Server 2008 DVD in the Sources directory. Unlike the install.wim, these files do not need to be copied locally and if you do wish to have them local, they’re a much smaller footprint.

clip_image006

Make sure you change the file type dropdown to Catalog files(*.clg) when browsing to see this files.

clip_image008

For this blog topic, I have selected to use the SERVERENTERPRISE catalog to create my answer file. After you have selected your catalog (or generated a catalog using the install.wim) and selected the option to create a new answer file, Windows System Image Manager should look similar to the following:

clip_image010

Now let’s get down to the four basic components you need to add to automate the OOBE process during Sysprep mini-setup. For this basic Sysprep deployment, please note that we will only be configuring the Specialize and oobeSystem configuration passes.

The first page we need to automate during OOBE is the Language and Country or Region Selection page. To automate this, expand Components in your Windows Image pane, right-click and add the Microsoft-Windows-International-Core setting to Pass 7 oobeSystem. In your answer file, configure the InputLocale, SystemLocale, UILanguage, and UserLocale with the appropriate settings for your language and country or region.

REMEMBER: Should you have a question about any of these settings, you can right-click on the specific setting and select Help. This will open the appropriate CHM help file with more information, including examples on the setting you are attempting to configure.

clip_image012

Secondly, we need to automate the Software License Terms Selection page, otherwise known as the End-User License Agreement (EULA). To do this, expand the Microsoft-Windows-Shell-Setup component. High-light the OOBE setting, and add the setting to the Pass 7 oobeSystem .  Under Settings, select the drop down next to HideEULAPage and select true.

clip_image014

The third page we need to automate is the Product Key Selection page and the Computer Name Selection page.

If you are working with volume license media you can either leave the product key blank if you are using KMS host for activation or you can enter your MAK key.  If you are using MAK key for activation you can also just enter the MAK key on the machine prior to running sysprep to create your image.  That way the product key is not in your answer file.  The key is removed automatically but during setup it is possible to see the key in the answer file.   

Please make sure to note that you must have a KMS Server setup in your environment in order for your KMS clients to activate. For Windows Server 2008, you have 60 day grace period to get KMS configured and to the appropriate count.  For more information on Volume Activation, I highly recommend reading the documentation available on Microsoft TechNet on the following website:

https://technet.microsoft.com/en-us/library/bb892849.aspx

To automate the Product Key Selection page, right-click on the Microsoft-Windows-Shell-Setup component and add the settings to the Pass 4 specialize configuration pass of your answer file. Under Settings, enter your Product Key in the space provided next to ProductKey. Furthermore, to automate the Computer Name Selection page, under Settings, specify a computer name next to ComputerName.

clip_image016

If no computername is entered you will be prompted for the computername on bootup of the image Also, you may notice the TimeZone. However, do not configure it here. We do not prompt for Time Zone on Windows Server 2008. If you wish to configure it, configure it on the top level of the Microsoft-Windows-Shell-Setup component we added to the 7 oobeSystem configuration pass of your answer file.

The forth and last page we need to automate is the Change Administrator Password page. Windows Server 2008 automatically prompts for you to specify the Administrator password prior to first logon. To automate this, expand the Microsoft-Windows-Shell-Setup component (if it is not still expanded), expand UserAccounts, right-click on AdministratorPassword, and add the setting to the Pass 7 oobeSystem configuration pass of your answer file. Under Settings, specify a password next to Value.

clip_image018

Click on File and Save Answer File. You can save the file as unattend.xml in the c:\windows\system32\sysprep folder and sysprep will automatically use the answer file or you can specify /unattend switch if you are running it from the command line to point to the path and name of the file.

During the saving process, Validation is run in Windows System Image Manager. Do not be concerned by any of the following sorts of Validation messages as it is simply stating that any of the settings we did not modify will not be saved to our answer file. These will automatically be removed:

clip_image020

You are now DONE! Obviously there are many, MANY more settings you can configure. The customizable settings are extensive. However, these four settings are the only ones that need to be added to your sysprep answer file in order to avoid any prompts during Sysprep Mini-Setup.

 

 

Author: Charity Shelbourne
Microsoft Enterprise Platforms Core Support
Sr. Support Escalation Engineer
Deployment Subject Matter Expert

 

 

Technorati Tags: Windows Vista,Windows 2008,Windows System Image Manager,WSIM,OOBE,Generalize,sysprep

Comments

  • Anonymous
    January 01, 2003
    PingBack from http://mstechnews.info/2008/10/automating-the-oobe-process-during-windows-server-2008-sysprep-mini-setup/
  • Anonymous
    January 01, 2003
    "If no computername is entered you will be prompted for the computername on bootup of the image"I can't get this to work. If I leave the field blank, the computer name is auto generated.The CHM file says this: "If you do not specify a value for ComputerName, you must enter a computer name during Windows Welcome.If ComputerName is set to an asterisk (*) or is an empty string, a random computer name will be generated."What is the difference between not specifying a value and setting the value to an empty string?Thanks,Rasmus
  • Anonymous
    March 07, 2011
    I am seeing the same exact issue with the computer name...I am leaving it blank but still not getting prompted to name the computer during initial boot up....
  • Anonymous
    February 28, 2016
    It is critical to maintain in mind that the terms of service of a social media internet site apply to what we post there and to the details we gather from it.Also: The terms might allow for our material to be applied in a diverse way than intended.