none
UWF and sysprep RRS feed

  • Question

  • Hi Guys,

    I'm having some problem with sysprep when I trying to prepare an WES8 image for deploy, and found out it was relative to the UWF generalizing process. Here's the detail:

    System using EFI, and therefore, 2 partition on the system disk: EFI and Primary.

    I issue the following command to do the sysprep:

    Sysprep.exe /quiet /generalize /oobe /shutdown

    The system will not automatically shutdown after the sysprep dialog finished, and I’ll see the following error in log:

    2013-11-12 16:46:05, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'UwfSysprepGeneralize' from C:\Windows\System32\wbem\uwfwmi.dll; dwRet = 0x5

    2013-11-12 16:46:05, Error                 SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x5

    2013-11-12 16:46:05, Error                 SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0x5

    2013-11-12 16:46:05, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x5

    2013-11-12 16:46:05, Error                 SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x5

    2013-11-12 16:46:05, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x5

    2013-11-12 16:46:05, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070005

    In case I run the command manually by using rundll32, I’ll see the result as:

    UWF Installer: - ProviderWrapper::Initialize - ++Provider operation beginUWF Installer: - GeneralizeHORMBcdSettings - Remove HORM Related Customized Key failed with hr=0x80004005, ignoredUWF Installer: - GeneralizeHORMBcdSettings - Remove HORM BCD Key(HKLM\BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\26000024) from UWF Specific Registry ExceptionsUWF Installer: - GeneralizeHORMBcdSettings -  SucceededUWF Installer: - GeneralizeHORMBcdSettings - Remove HORM BCD Key(HKLM\BCD00000000\Objects\{16d61a28-4907-11e3-a62c-d348f5924760}\Elements\26000024) from UWF Specific Registry ExceptionsUWF Installer: - GeneralizeHORMBcdSettings -  SucceededUWF Installer: - UwfSysprepGeneralize - Delete Machine Specific HORM BCD Settings succeededUWF Installer: - GeneralizeVolumeSettings - +Start Generalize Volume(0) binding informationUWF Installer: - GeneralizeVolumeSettings - -End Generalize Volume(0) binding informationUWF Installer: - GeneralizeVolumeSettings - +Start Generalize Volume(0) VolumeNameUWF Installer: - GeneralizeVolumeSettings - GetGeneralVolumeNameFromVolumeGUID failed with hr=0x80070002UWF Installer: - UwfSysprepGeneralize - Delete Machine Specific Volume Settings failed with hr=0x80070002

    I do run the command within the build in administrator account.

    Any idea where I did wrong?

    Thanks!

    Tuesday, November 12, 2013 9:14 AM

All replies

  • Is UWF enabled? If so disabled it, and then run sysprep.

    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

    Tuesday, November 12, 2013 4:33 PM
    Moderator
  • Yes, UWF is disabled all the time.

    Thursday, November 14, 2013 6:10 AM
  • Suddently, does this has anything to do with GPT mode for EFI? If so, is there any step I missed?

    Thursday, November 14, 2013 11:16 PM
  • Not sure. I haven't tried EFI/GPT for WE8S, but it should work. Try non-EFI partition and see what happens.

    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET


    Thursday, November 14, 2013 11:40 PM
    Moderator
  • Why does UWF have to bind with GPT’s ID?

    Here’s the latest finding:

    1. Setup the image. UWF works ok at init. Setup.
    2. Prepare image:

      a. Do a sysprep generalize, no issue.

      b. If clean up disk in with disk part, and restore the init. setup image from a capture, generalize fail.

    3. From 2A, capture the image.

      a. Reboot the image, UWF works ok (no GPT change this time).

      b. Do a disk clean and redeploy the image, UWF specialization fail. Error as:


      2013-11-14 14:58:49, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'UwfSysprepSpecialize' from C:\Windows\System32\wbem\uwfwmi.dll; dwRet = 0x5
      ......
      Can anyone from Microsoft help to give some answer from technical perspective of view?

    Thanks,

    Wesley


    • Edited by Puffel_Yang Wednesday, November 27, 2013 7:42 AM
    Wednesday, November 27, 2013 7:40 AM
  • Disable UWF filter may solve this problem
    Thursday, January 10, 2019 4:26 AM