Jump to content


anyweb

Root Admin
  • Posts

    9,108
  • Joined

  • Last visited

  • Days Won

    363

Posts posted by anyweb

  1. Add component to Answer File

     

    start up Windows SIM and select Microsoft-Windows-Setup from the choices in the Components section of Windows Image. Expand DiskConfiguration and then right-click on Disk and choose Add Setting to Pass 1 windowsPE

     

    diskconfiguration.jpg

     

    set the DiskID to "0" in properties

     

    diskid.jpg

     

    Note: if you try to deploy and get an error message stating Windows could not create a partition on disk 0. The error occurred while applying the unattend answer file's <DiskConfiguration> setting. Error Code:0x80004005 then set the WillWipeDisk to true

     

    willwipedisk.jpg

     

     

    Partition the hard disc

     

    Now we want to partition the hard disk to be 40GB in size so add the Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition component to the windowsPE pass.

     

    diskcreatepartition.jpg

     

    set the properties to order=1, size=40000 and type=primary

     

    40gb.jpg

     

     

    Mark as active and format with NTFS

     

    Add the Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition node to the windowsPE pass

     

    modifypartition.jpg

     

    edit your settings like this, make sure to set order and partition ID or this will not work...

     

    partitionsettings.jpg

     

     

    Tell Windows where to install to

     

    Now that we've got our hard disc sorted we need to tell Windows where to install to, so add the Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo node to the windowsPE configuration pass

     

    installto.jpg

     

    set the DiskID to 0 and PartitionID to 1

     

    imageinstall.jpg

     

     

     

    Add more partitions

     

    If you want to add more partitions you can do so as follows:

     

    Right-click on CreatePartitions and choose Insert New CreatePartition

     

    create_new_partitions.jpg

     

    when the properties screen appears, fill in the values for Order, Size and Type (do not set Extend to True if Size is set to a value)

     

    order_size_and_type.jpg

     

    Now that we have created our new partition, you need to modify it, so right click on ModifyPartitions and choose Insert New Modify Parition

     

    modeify_partition.jpg

     

    make your changes to the properties paying close attention to the Order and PartitionID values otherwise the deployment won't work

     

    partitionid.jpg

     

    validate your answer file by clicking on the validate button

     

    here's some sample (working) code from an XML file i've made, in this sample it makes 3 partitions, C, D, and E, C is for the Os, D for Data and E for other.

     

      <component name="Microsoft-Windows-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">
    		<DiskConfiguration>
    			<Disk wcm:action="add">
    				<ModifyPartitions>
    					<ModifyPartition wcm:action="add">
    						<Active>true</Active>
    						<Format>NTFS</Format>
    						<Label>OS</Label>
    						<Order>1</Order>
    						<PartitionID>1</PartitionID>
    						<Letter>C</Letter>
    					</ModifyPartition>
    					<ModifyPartition wcm:action="add">
    						<Format>NTFS</Format>
    						<Label>data</Label>
    						<Letter>D</Letter>
    						<Order>2</Order>
    						<PartitionID>2</PartitionID>
    					</ModifyPartition>
    					<ModifyPartition wcm:action="add">
    						<Format>NTFS</Format>
    						<Label>other</Label>
    						<Letter>E</Letter>
    						<Order>3</Order>
    						<PartitionID>3</PartitionID>
    					</ModifyPartition>
    				</ModifyPartitions>
    				<DiskID>0</DiskID>
    				<CreatePartitions>
    					<CreatePartition wcm:action="add">
    						<Order>1</Order>
    						<Size>40000</Size>
    						<Type>Primary</Type>
    					</CreatePartition>
    					<CreatePartition wcm:action="add">
    						<Order>2</Order>
    						<Size>30000</Size>
    						<Type>Primary</Type>
    					</CreatePartition>
    					<CreatePartition wcm:action="add">
    						<Order>3</Order>
    						<Size>100</Size>
    						<Type>Primary</Type>
    					</CreatePartition>
    				</CreatePartitions>
    				<WillWipeDisk>true</WillWipeDisk>
    			</Disk>
    		</DiskConfiguration>
    		<ImageInstall>
    			<OSImage>
    				<InstallTo>
    					<DiskID>0</DiskID>
    					<PartitionID>1</PartitionID>
    				</InstallTo>
    				<InstallFrom>
    					<MetaData wcm:action="add">
    						<Value>Windows Longhorn SERVERENTERPRISE</Value>
    						<Key>/IMAGE/NAME</Key>
    					</MetaData>
    				</InstallFrom>
    			</OSImage>
    		</ImageInstall>
    		<UserData>
    			<AcceptEula>true</AcceptEula>
    			<FullName>windows-noob</FullName>
    			<Organization>windows-noob</Organization>
    		</UserData>
    		<UseConfigurationSet>true</UseConfigurationSet>
    	</component>

     

    once the deployment is complete, you can see your partitions listed in Explorer

     

    cde.jpg

  2. Start up Windows SIM and in the components section of Windows Image, expand the section called Microsoft-Windows-UnattendedJoin

     

    right-click it and choose Add Setting to Pass 4 Specialize

     

    add_setting_to_pass4_specialize.jpg

     

    in the Answer File pane, click on the newly added setting and expand it, select Identification and enter the Domain name in the JoinDomain value.

     

    In addition, if you want to log domain join failures (logs to c:\windows\panther\unattendGC\) then set the DebugJoin option from false to true

     

    join_domain.jpg

     

    f.y.i the error below is from a test deployment and actually happened when the computer failed to join the domain

     

    windows_could_not_parse2.jpg

     

    Windows Could not parse or process the unattend answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-UnattendedJoin].

     

    Browsing the log file mentioned above (setupact.log) showed me this:-

     

    2008-11-05 15:34:41, Warning [unattendedjoin.exe] Unattended Join: NetJoinDomain attempt failed: 0x52e, will retry in 5 seconds...
    repeated many times...

     

    then

     

    2008-11-05 15:36:19, Error [unattendedjoin.exe] Unattended Join: NetJoinDomain failed error code is [1326]

    2008-11-05 15:36:19, Info [unattendedjoin.exe] Debug mode: Breaking to debugger on error: 1326

    2008-11-05 15:36:20, FatalError [0x090001] PANTHR Unhandled exception (code 0x80000003: BREAKPOINT) occurred at 0x00000000779E4EA0 in C:\Windows\system32\ntdll.dll (+0000000000044EA0). Minidump attached (25159 bytes).

     

    and the reason why it failed to join the domain ? wrong password specified in the XML file...

     

    click on Credentials under Identification, and enter your domain name/user/password for the account which will join this computer to the domain

     

    credentials.jpg

     

    validate your answer file by clicking on the Validate icon, check the messages pane to ensure there are no warnings or errors.

  3. ok i've looked through your log file using Tracer32 and can't find anything odd apart from the disk being formatted after you've installed software (if that's how i'm reading it...)

     

    so... can you please take note of exactly WHERE in the task sequence it fails (what section, enabled F8 in boot.wim and press it at the start of the task sequence to STOP any reboot when it fails)

     

    i need you to tell me what is the error message (if any) you see on screen when it fails

     

    cheers

    anyweb

  4. What is it ?

     

    Windows System Image Manager is a tool for editing XML files used in the deployment of Vista/Windows Server 2008. These XML files are sets of instructions telling Windows Setup how to proceed and install itself, in the past we would have edited such files (sysprep.inf, unattend.txt) using notepad, but now Windows has grown up and so has its' tools.

     

    You can use Windows SIM to create an answer file (autounattend.xml or unattend.xml) that partitions and formats a disk before installing Windows, you can create an XML file for an unattended install of Vista/Server 2008, and then automate the process by copying the finished AutoUnattend.xml file to either the root of a USB key or the root of a Windows Vista (or Server 2008) DVD. When Windows setup starts it will query these locations if present for the file and if it finds the file it will use the settings found within.

     

    Tip:

     

    If you create an unattend.xml file using Windows System Image Manager (SIM) and you want to allow users to install Windows Vista with no user interaction, you would need to rename the file to autounattend.xml and copy it to the root of a USB Flash Drive.

     

     

     

    How do I get it ?

     

    Windows SIM is part of the Windows Automated Installation Kit (WAIK) so if you want it then you'll need to install the WAIK first. Note: this guide is aimed at customising Windows Vista. If you want to use Windows SIM to customise Windows 7 deployments then you'll need The Windows® Automated Installation Kit (AIK) for Windows® 7 which you can download here.

     

    overview.jpg

     

    As you can see from the screenshot above, there are 5 main areas to Windows SIM, and they are as follows:

     

    1. distribution share (may contain $OEM$ Folders, Out-of-Box Drivers or the Packages directories, requires at least one of these dirs to be recognised as a DS)

    2. windows image

    3. answer file

    4. properties

    5. messages

     

    When you start Windows SIM for the first time however, the above panes will all be blank as in the screenshot below

     

    wsim_new.jpg

     

     

    How can I use it ?

     

    Before you can use Windows SIM you are going to need your Windows Vista DVD or your Windows Server 2008 DVD, so locate them and once done copy the contents of one of them to a folder locally.

     

    eg: c:\source\w2k8dvd

     

    Now that you have a local copy of the DVD, you can use that as your Windows source (we need to point number 2 above to the install.wim file on the local source). So let's do that, right click on Select a Windows Image and choose Select Windows Image

     

    select.jpg

     

    browse to the Local directory which contains a copy of your Windows DVD and choose the sources directory within there, select the install.wim file

     

    sources.jpg

     

    select an Image from the DVD, in my case I'm using a Windows Server 2008 64bit source.... I select Longhorn ServerStandard from the choices available

     

    choice.jpg

     

    Once done, you may get prompted to create a Catalog file, answer Yes. The catalog file contains descriptions of what components and packages the image contains so may take a few minutes to generate. After the Catalog file is created, our Windows Image pane will list some new nodes called Components and Packages and you can expand them to see what lies within.

     

    windows_image.jpg

     

     

    create New Answer File

     

    Now that we have our Windows Image loaded, we will want to configure it so in the Answer File pane, right click and choose New Answer File

     

    new_answer_file.jpg

     

    Now that we have a new answer file we can start to configure it, and to do so we need to add components or packages from the Windows Image pane to our Answer file, and then we can make changes to the options we have chosen.

     

    configure.jpg

     

    Set Regional and Language options

     

    In the Windows Image pane, expand the Components node and select Microsoft-Windows-International-Core-WinPE, in my example I have a amd64_ infront of Microsoft-Windows-International-Core-WinPE because I am using a 64bit image. If you are using 32 bit, yours will say X86_Microsoft-Windows-International-Core-WinPE

     

    right click on the option and choose Add Setting to Pass 1 Windows PE

     

    add_setting.jpg

     

    In the Answer File section, expand the newly added setting and enter en-US as the value for Input Locale, System Locale,, UILanguge, UILanguageFallback and UserLocale

     

    en_us.jpg

     

    expand the SetupUILanguage option beneath, and add the en-US value to the UILanguage option

     

    setupuilanguage.jpg

     

    Validate our changes

     

    We have now created an answer file and configured our language and regional options, it is important to understand that you can easily make mistakes creating an answer file, and Windows SIM has a checking tool built in to verify your changes, so to do that click on Validate answer File and look in the Messages pane for any messages.

     

    validate.jpg

     

     

     

    In addition to the above you may want to do the following actions

     

    how can I join a Domain using Windows SIM

    how can I configure the hard disc using Windows SIM

    how can I install drivers using windows SIM

    how can I change computername using Windows SIM

    how can I add the product key using Windows SIM

    how can I edit the EULA, FullName and Organization settings using Windows SIM

    how can I decide which version of Windows get's installed using Windows SIM

     

     

     

    Troubleshooting

     

    Technet Resources > http://technet.microsoft.com/en-us/library/cc766073.aspx

     

    if something is not going as planned, you can browse the C:\Windows\ and C:\Windows\Panther folders for log files, in particular the setupact.log and setuperr.log files

     

    pressing left Shift and F10 together will bring up a command prompt during the Windows setup stage if you wish to view the files using notepad.

     

     

     

    Some errors you may encounter:

     

    Windows setup could not install one or more boot-critical drivers

     

    this will happen at boot time and may occur after you have added new drivers to your USB key or DVD (or network share..), verify that the drivers are not causing a problem with network connectivity, for example if you've added a 3G modem driver and the error occurs, then you'll have to add that driver at a later stage of the installation.

     

     

     

     

    Additional Reading:-

     

    Document: Windows Automated Installation Kit for Windows 7 documentation (May 2010 Update)

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=f1bae135-4190-4d7c-b193-19123141edaa

     

    Video: How Do I: Unattended Answer Files Using Windows System Image

    http://technet.microsoft.com/en-us/windows/dd179859.aspx

     

    Podcast: How Do I: Get Ready for Windows 7 Deployment with the Windows Automated Installation Kit (WAIK) ?

    http://www.microsoft.com/events/podcasts/default.aspx?seriesID=Series-acd4d6bf-efe0-4f7e-a1f6-13eecb0b28d6.xml&pageId=x6865&source=Microsoft-Podcasts-about-Windows-7:-Increase-Productivity,-Improve-Security,-and-Streamline-PC-Management&WT.rss_ev=a

  5. Johan Arwidmark posted this .

     

    in his own words....

     

     

    Here is an article (step-by-step guide) on how to keep a single image for Windows XP deployment, across HAL types, also known as HAL Replacement. Sample scripts for detecting the HAL type from WinPE and update sysprep.inf with the correct info is provided with this article (provided AS IS).

     

    The scripts are now (2008-10-01) updated with support for both WinPE 2005 and WinPE 2.1 as well as Windows XP SP3 (which works with HAL slightly different than XP SP2). Support for SCCM 2007 was also added.

     

    Download sample scripts

    http://www.deployvista.com/Repository/tabi...US/Default.aspx

     

    This script updates sysprep.inf with correct HAL Type

    The Reference (master) image should have an Advanced ACPI HAL type.

     

    This script assumes the following files are being present in C:\Drivers\UniProcHAL

    hal.dll (Rename from halaacpi.dll to hal.dll)

    ntkrnlpa.exe

    ntoskrnl.exe

  6. PXE boot the client and start the deployment

     

    PXE boot your client

     

    pxe_boot.jpg

     

    Windows PE should start

     

    winpe.jpg

     

    and the Task Sequence should kick in...

     

    deploying.jpg

     

    and XP is being installed

     

    xp_installing.jpg

     

    after a reboot you'll see some old familiar XP setup screens...

     

    starting_windows.jpg

     

    starting_windows2.jpg

     

    then back to the XP setup GUI

     

    stay_up_to_date.jpg

     

    if you get this error

     

    error.jpg

     

    then you'll know that you need to edit your Task Sequence and change the following setting (Apply Windows Settings)

     

    apply_windows_settings.jpg

     

    back to the Task Sequence...

     

    more_ts.jpg

     

    Just before running Sysprep, the task sequence will run the 'Install Deployment Tools' section within our Task Sequence and you may see a failure here where you get an error similar to

     

    task sequence failed with the error code 0x00000002

     

    If you get this error then verify the following:

     

    1. you have added the Windows XP network driver for the client's network card as a driver in SCCM and added it to a driver package and added in to the Task Sequence

    2. create a distribution point and then updated the distribution point for the network driver package

     

    Once done, re-run the TS and all should be ok.

     

    running Sysprep

     

    running_sysprep.jpg

     

    capturing the sysprepped XP image to a WIM file and storing it on our SCCM server

     

    capturing.jpg

     

    After the capture is done, the computer will restart and boot into XP, at this point you now have a captured WIM file with your Windows XP image.

     

    You can use that WIM file to Deploy your XP clients. In other words, you now have a WIM image of a Sysprepped Windows XP installation targetted for the hardware you just ran this on.

     

    You now have the options to

     

    * create a new Operating System Image using this WIM file,. and then create a new Task Sequence for deploying it to bare metal pcs,

     

    or

     

    * use a Custom Installation DVD.

     

    or deploy this image using imageX or other methods like WDS\MDT, but you really want to use SCCM for this right ? :)

  7. Import computer into the collection

     

    In the Operating System Deployment section, right click on computer Association and choose import computer information, select import single computer

     

    import.jpg

     

    for computername call the computer bacapXP

     

    fill in the MAC or GUID details (or both)

     

    bacapxp.jpg

     

    the MAC or GUID can be obtained from the bios screen when the client PXE boots....

     

    macguid.jpg

     

    click next for the data preview, check for typos

     

    on the Choose target collection screen, click browse and scroll down to our Build and Capture XP collection, select it

     

    add_to_following_collection.jpg

     

    review the summary and click next then click close at the confirmation screen

     

    done.jpg

  8. Advertise the Task sequence

     

    We will now advertise the Task Sequence to the Build and Capture XP Collection we created in Part 1, so to do this right click on the Task Sequence and choose Advertise.

     

    On the general screen click browse and select the Build and Capture XP Collection

     

    browse_collection.jpg

     

    make it available to boot media and pxe

     

    new_ad_wizard.jpg

     

     

    Schedule

     

    Set your schedule depending on whether you are in a Lab or Production Environment.

     

    For a Lab Environment

     

    Make the Task Sequence mandatory by clicking on the yellow star and select As soon as possible.

     

    Select ignore maintenance windows when runing program and allow system restart, set the program rerun behaviour to always rerun program so that we can rerun the task sequence over and over as we require for testing.

     

    for a lab env.jpg

     

    For a Production Environment

     

    In a Production environment set the advertisement from Mandatory to Optional, this gives us less risk of an accidental deployment but also introduces the possibilty of choice.

     

     

    for a prod env.jpg

     

    if you want to remove choice then keep the advertisement mandatory but change the program rerun behaviour to never rerun (see below screenshot).

     

    never rerun.jpg

     

     

     

     

     

     

     

     

     

    set the distribution points as follows:

     

    distribution_points.jpg

     

    and interaction options...

     

    interaction.jpg

     

    click next through security, summary and progress and close at the confirmation screen after verifying all is ok

     

    summary.jpg

  9. Edit the Task Sequence

     

    Now that we have made our task sequence let's make the deployment process faster by forcing the Format process to do a quick format.

     

    Right-click on the TS and select Edit.

     

    build_and_cap_task_sequence_edit.jpg

     

    In the Task Sequence, click on Partition Disk 0 and then click (to highlight) the Default volume listed, once done you can edit the properties of it by clicking on the middle icon (edit, see screenshot)

     

    partition.jpg

     

    when the partition details come up, place a checkmark in Quick Format

     

    quick.jpg

     

    click OK when done.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.