none
Cannot deploy when apply patches RRS feed

  • Question

  • Hi,


    I'm trying to apply windows updates while deploying windows 7.

    I downloaded all updates, made new folder under Packages, and then import OS Packages. then in Advanced configuration  i made a new Selection profile. Then, at the task sequence, I made a new entry type (type: Install updates Offline, Name: Apply Patches)) under Preinstall -> Refresh only, above "Next Phase", in that entry at the properties TAB under Selection profile i chose the Selection profile i configured (WSUS_Updates)

    Now every time i try to deploy that image I'm getting an error, when looking at the BBD log file i see it say that there is not enough space at D drive. when I tick "Disable this step" (Install updates Offline) the deployment go smoothly.

    Any ideas?

    Wednesday, July 22, 2015 1:04 PM

All replies

  • Instead of first trying to figure out the issue, let me explain that it's not a good idea to add "all" OS packages for offline updates. For one it's better, easier and faster to deploy if you just use Windows update when you build your reference image (build it in a VM). Another reason is that some updates must be installed in a particular order. Another reason is that maybe the hardware you are deploying to needs an update you didn't include. Maybe you're adding packages that don't need to be installed.

    I find it far more useful to create targeted packages. In your task sequence you can add a PackageGroup variable.

    You do not need to make folders for every make and model, just the ones you will actually import some OS packages for.


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Wednesday, July 22, 2015 2:26 PM
  • As for your issue, it would help if you could post a copy of your bdd.log file to something like one drive and share the link here.

    Here's an example of one of my logs that used a package group variable to add targeted packages.

    Setting variable PackageGroup001 to value Windows 8.1 x64\Microsoft\Surface Pro 3	ZTISetVariable	3/30/2015 9:00:39 AM	0 (0x0000)
    Property PackageGroup001 is now = Windows 8.1 x64\Microsoft\Surface Pro 3	ZTISetVariable	3/30/2015 9:00:39 AM	0 (0x0000)
    ZTISetVariable processing completed successfully.	ZTISetVariable	3/30/2015 9:00:39 AM	0 (0x0000)
    Event 41001 sent: ZTISetVariable processing completed successfully.	ZTISetVariable	3/30/2015 9:00:40 AM	0 (0x0000)
    ZTIPatches Entered PREINSTALL state. Deployment Method = UNC	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Operating system being deployed requires amd64 updates.	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Pre-Install setup installation state.	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Load XML....	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Adding non-language pack entries to unattend.xml	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Open Control File: Packages	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Add package {efb1c127-f6e1-4c95-a8ac-a97f51e6dec5}	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Package {efb1c127-f6e1-4c95-a8ac-a97f51e6dec5} added.	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Add package {95ad0a7d-d80c-4b39-bfbb-0ce0fecf3eb1}	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Package {95ad0a7d-d80c-4b39-bfbb-0ce0fecf3eb1} added.	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    Ready to Save!	ZTIPatches	3/30/2015 9:00:40 AM	0 (0x0000)
    


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Wednesday, July 22, 2015 2:36 PM
  • Thanks for your reply.

    It is very interesting what you suggested. I did the same thing for drivers installation, i didn't think it can be done for windows updates.
    where I need to place this Task sequence Variable? same place where i placed my Variable or under DriverGroup001?

    I would like to say that I install wsus on virtual machine and download only updates for windows 7 64 bit (which is the only OS i deploy) and for Microsoft office 2010 (which is the only Office we use).

    If you mention this, I did install all updates before capturing the image for deploy, but after deploying this image i saw all updates were deleted for some reason and I didnt see any update installed when looking in programs and features - View installed updates, and after deploy it download all updates again, a thing that takes 3 hours to finish.
    Do you know why it happen?

    Thanks again :)


    • Edited by Eli Goldhar Wednesday, July 22, 2015 2:48 PM
    Wednesday, July 22, 2015 2:46 PM
  • Right here just before the apply patches task. In the "Apply Patches" task, set the Selection profile to Nothing. This is similar to what you would have done for the Inject Drivers task.

    I can't think of why your updates would have been uninstalled. How did you build your reference image? Was it in a VM or physical machine? I build mine in a VM and add a suspend task so that I can make a checkpoint. Then if something went bad during capture I can reload it and try again. It's also very useful for maintaining your image, because you can run Windows update to patch it, reboot, then shutdown and make another checkpoint.


    If this post is helpful please vote it as Helpful or click Mark for answer.


    • Edited by Dan_Vega Wednesday, July 22, 2015 3:21 PM typo
    Wednesday, July 22, 2015 3:18 PM
  • Hi,

    I tried what you suggested and I got the same result.

    I just made a new capture as you suggested, with VM and the suspended and it works fine now. I have an image with all updates inside.

    so thank you very much.

    just a quick question though,
    lets say I would like to install different packages, like 1 packge will be updates, and another is a kernel i need to install for some computers, can i do this by adding Set packageGroup002, and underneath add another "Install Updates Offline" and name it Apply Paches 2?

    Tuesday, August 11, 2015 1:14 PM
  • It's been a while so remind me which suggestion didn't work for you.

    For the package groups, if you're going to define multiple groups in one task sequence then yes the next one would be PackageGroup002 and so on. But again all non hardware specific updates should be installed using windows update. There are updates that have to be installed in a specific order and you can't control that using a packagegroup.

    You have one of two ways to limit a package group to a particular model. You can either use the method I showed earlier of %Model% or you can go to the options tab and add a if true condition and WMI query. An example query would look like this:

    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE "%Optiplex%"


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Tuesday, August 11, 2015 1:48 PM