Error in validating actions from c windows system32 sysprep actionfiles generalize xml

Образ Windows 10 Pro получен с сайта VLSC.

Установлен на виртуальную машину Hyper-V. Установил необходимый софт (офис, java, bde, архиватор и прочие нужные вещицы), обновил ОС. Запускаю sysprep и перехожу в режим аудита системы — там удаляю всех пользователей, что возможно.

Снова запускаю sysprep уже с подготовкой к использованию и получаю знакомую многим (судя по обилию информации в Инторнетах) ошибку.

Открываю файл лога:

2018-04-16 14:54:17, Info                  SYSPRP ========================================================
2018-04-16 14:54:17, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2018-04-16 14:54:17, Info                  SYSPRP ========================================================
2018-04-16 14:54:17, Info       [0x0f004d] SYSPRP The time is now 2018-04-16 14:54:17
2018-04-16 14:54:17, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2018-04-16 14:54:17, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2018-04-16 14:54:17, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2018-04-16 14:54:17, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2018-04-16 14:54:20, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2018-04-16 14:54:20, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2018-04-16 14:54:20, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2018-04-16 14:54:20, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2018-04-16 14:54:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2018-04-16 14:54:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2018-04-16 14:54:26, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
2018-04-16 14:54:26, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2018-04-16 14:54:26, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
2018-04-16 14:54:26, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2018-04-16 14:54:26, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2018-04-16 14:54:26, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2018-04-16 14:54:26, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2018-04-16 14:54:26, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll without error
2018-04-16 14:54:26, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2018-04-16 14:54:26, Error                 SYSPRP Package A278AB0D.DisneyMagicKingdoms_2.8.2.3_x86__h6adky7gbf63m was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2018-04-16 14:54:26, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-04-16 14:54:26, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-04-16 14:54:26, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-04-16 14:54:26, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-04-16 14:54:26, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-04-16 14:54:26, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-04-16 14:54:26, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2018-04-16 14:55:24, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2018-04-16 14:55:24, Info       [0x0f004d] SYSPRP The time is now 2018-04-16 14:55:24

Пробовал выполнять команду Remove-AppxPackage -Package DisneyMagicKingdoms_2.8.2.3_x86__h6adky7gbf63m — нет такого приложения.

Решил сделать так: Get-AppxPackage -AllUser, нашел там это приложение, которое установлено для какого-то фиг пойми пользователя, которого уже нет:

Name                   : A278AB0D.DisneyMagicKingdoms
Publisher              : CN=276B8086-F8CA-495E-A880-D275ED83EA67
Architecture           : X86
ResourceId             : 
Version                : 2.8.2.3
PackageFullName        : A278AB0D.DisneyMagicKingdoms_2.8.2.3_x86__h6adky7gbf63m
InstallLocation        : C:\Program Files\WindowsApps\A278AB0D.DisneyMagicKingdoms_2.8.2.3_x86__h6adky7gbf63m
IsFramework            : False
PackageFamilyName      : A278AB0D.DisneyMagicKingdoms_h6adky7gbf63m
PublisherId            : h6adky7gbf63m
PackageUserInformation : {S-1-5-21-2883091371-2010835875-3277008128-1001 [S-1-5-21-2883091371-2010835875-3277008128-100
                         1]: Installed}
IsResourcePackage      : False
IsBundle               : False
IsDevelopmentMode      : False
IsPartiallyStaged      : False
SignatureKind          : Store
Status                 : Ok

Как же теперь удалить это приложение? Больше всего доставляет, что это Волшебные королевства Disney, а не какой-нибудь Telegram или ещё что-то похожее)))

I am attempting to run «sysprep /generalize /oobe /shutdown» in Windows 10 Pro. I am encountering an error «Sysprep was unable to Validate your Windows installation…» Here is the Log File from SYSPREP:

========================================================
2018-02-01 17:59:23, Info                 SYSPRP ===         Beginning of a new sysprep run         ===
2018-02-01 17:59:23, Info                 SYSPRP ========================================================
2018-02-01 17:59:23, Info     [0x0f004d] SYSPRP The time is now 2018-02-01 17:59:23
2018-02-01 17:59:23, Info     [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2018-02-01 17:59:23, Info     [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2018-02-01 17:59:23, Info     [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2018-02-01 17:59:23, Info     [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘GENERALIZE’
2018-02-01 17:59:23, Info     [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘OOBE’
2018-02-01 17:59:23, Info     [0x0f005f] SYSPRP ParseCommands:Found supported command line option ‘SHUTDOWN’
2018-02-01 17:59:23, Info     [0x0f00d7] SYSPRP WinMain:Pre-validing ‘cleanup’ internal providers.
2018-02-01 17:59:23, Info                 SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2018-02-01 17:59:23, Info                 SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2018-02-01 17:59:23, Info                 SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2018-02-01 17:59:23, Info                 SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2018-02-01 17:59:23, Info                 SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2018-02-01 17:59:23, Info                 SYSPRP spopk.dll:: Sysprep will run on an upgraded OS.
2018-02-01 17:59:25, Info                 SYSPRP ActionPlatform::LaunchModule: Successfully executed ‘Sysprep_Clean_Validate_Opk’ from C:\Windows\System32\spopk.dll without error
2018-02-01 17:59:25, Info     [0x0f00d7] SYSPRP WinMain:Pre-validing ‘generalize’ internal providers.
2018-02-01 17:59:25, Info                 SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
2018-02-01 17:59:25, Info                 SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2018-02-01 17:59:25, Info                 SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2018-02-01 17:59:25, Info                 SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2018-02-01 17:59:25, Info                 SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2018-02-01 17:59:25, Info                 SYSPRP Entering SysprepGeneralizeValidate (Appx) — validating whether all apps are also provisioned.

2018-02-01 17:59:25, Error               SYSPRP Package Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2018-02-01 17:59:25, Error               SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-02-01 17:59:25, Error               SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-02-01 17:59:25, Error               SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-02-01 17:59:25, Error               SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-02-01 17:59:25, Error               SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-02-01 17:59:25, Error     [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-02-01 17:59:25, Error     [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

So I seem to be experiencing an issue where Windows 10 and Windows Store apps (I am assuming) are interfering with Sysprep /oobe /generalize.

When I attempt to run the above command, I receive the following error in the setuperr.log:

Error              SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error              SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error              SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error   [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error              SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error              SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error   [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error   [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
Error              SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error              SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error              SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error   [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error              SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error              SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error   [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error   [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

I’ve had a look online at several articles only, namely:

  • KB2769827
  • TechNet Article «How to delete or remove «white» blank shortcut in shell:appsFolder»
  • Restore Microsoft Store application in Windows 10

The only things that I did when installing the system were these, in order:

  1. Installed Windows 10 Pro using «windows_multiple_editions» ISO from MSDN on an EFI VM;
  2. Created a user «Admin» during the initial OOBE, logged in and ran compmgmt.msc and enabled built-in «Administrator»;
  3. Logged in as «Administrator», logged into a network share, ran installation scripts that install a bunch of programs;
  4. Deleted «Admin» and did a VMware Snapshot before Sysprepping; and
  5. Ran Sysprep.exe /oobe /generalize and received the above error doing so.

I took the initiative to try and fix this quickly by checking out Powershell’s AppxPackage cmdlet but the below command returned no results:

Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation | Select-String "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe"

I suppose my questions are:

  • Can this be fixed?
  • What caused this, so that future troubled administrators will know how to avoid this?
  • By deleting «Admin» have I somehow screwed something up (referring to the TechNet Article)?

I understand that there are answers for different Appx related issues, but I have not touched Windows Store/Metro Apps at all whilst sysprepping. The only notable thing I installed was .NET 3.5 (Related?)

To re-cap my VM setup is:

  • Windows 10 Pro x64 (Build 10240);
  • 2GB RAM, 60 GB HDD;
  • EFI;
  • Not domain joined. Currently on WORKGROUP; and
  • Internet is NAT’d with VM host.

Errors listed in the log file:

  • 0x0F0070
  • 0x0F0082
  • 0x0F00D8

I appreciate the feedback and answers. Hopefully someone will be able to outsmart this SysPrep error. Thanks for reading!

You will Learn How to fix error

  • MDT Sysprep and capture failed on Windows 10 1903
  • MDT failed to capture the image
  • BitLocker does not turn ON windows 10 1903 version
  • Turn BitLocker off to run Sysprep. (0x80310039)

On January 14, 2020 the Windows 7 operating system is set to retire and will no longer be supported by Microsoft which means they will be no longer provide security updates. With deadline date approaching all IT Support persons are busy in doing upgrade of systems from Windows 7 to Windows10. Easy way to deploy Windows10 is from MDT, first need to build a Standard image with all configuration and patch updates.During initial stages can MDT Sysprep and capture failed?

With Latest build of Windows 10 build 1903 covers all patches and require less time to build the computer. So we started to Install a fresh Windows 10 build 1903 on Dell Latitude 5490 and updated with the latest windows patches, as this version has lesser patches to update and require few minutes.

Next Step to capture the image from MDT(Microsoft Deployment Toolkit), MDT Sysprep and capture failed to capture the image and an error occurred as shown below

Info  SYSPRP ActionPlatform::LaunchModule: Executing method ‘ValidateBitLockerState’ from C:\Windows\System32\BdeSysprep.dll

Error  SYSPRP BitLockerSysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)

Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘ValidateBitLockerState’ from C:\Windows\System32\BdeSysprep.dll; dwRet = 0x80310039[gle=0x00000001]

Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x80310039

Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x80310039

Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x80310039

Error [0x0f00d8] SYSPRP WinMain:Hit failure while prevalidate sysprep generalize internal providers; hr = 0x80310039

Info [0x0f0052] SYSPRP Shutting down SysPrep log  

Forums and blogs provided different solution but those suggested solutions does not work on Windows 10 build 1903. I continue further investigating on the problem found that Bitlocker was creating the problem. If you look at BitLocker settings in control panel it always show up that BitLocker is OFF and does not encrypt the disk.

MDT Sysprep and capture failed _BitLocker OFF

Fix MDT Sysprep and capture failed on Windows 10 1903, with BitLocker to turn ON, follow below steps

  • Open the cmd or command prompt with Administrative access
  • Type command            manage-bde -off C:
  • Check the status       manage-bde -status

you should screen as shown below

Turn BitLocker off to run Sysprep. (0x80310039)

Important note:  Windows 10 has built-in apps which have to be removed while building image for a corporate laptops or desktops. Apps like one-note,Skype, Xbox …

Here the list of apps need to remove, If you Copy & Paste on an elevated PS (Powershell)will work.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

GetAppxPackage *3dbuilder* | RemoveAppxPackage

GetAppxPackage *windowsalarms* | RemoveAppxPackage

GetAppxPackage *Appconnector* | RemoveAppxPackage

GetAppxPackage *windowscalculator* | RemoveAppxPackage

GetAppxPackage *windowscommunicationsapps* | RemoveAppxPackage

GetAppxPackage *windowscamera* | RemoveAppxPackage

GetAppxPackage *CandyCrushSaga* | RemoveAppxPackage

GetAppxPackage *officehub* | RemoveAppxPackage

GetAppxPackage *skypeapp* | RemoveAppxPackage

GetAppxPackage *getstarted* | RemoveAppxPackage

GetAppxPackage *zunemusic* | RemoveAppxPackage

GetAppxPackage *windowsmaps* | RemoveAppxPackage

GetAppxPackage *Messaging* | RemoveAppxPackage

GetAppxPackage *solitairecollection* | RemoveAppxPackage

GetAppxPackage *ConnectivityStore* | RemoveAppxPackage

GetAppxPackage *bingfinance* | RemoveAppxPackage

GetAppxPackage *zunevideo* | RemoveAppxPackage

GetAppxPackage *bingnews* | RemoveAppxPackage

GetAppxPackage *onenote* | RemoveAppxPackage

GetAppxPackage *people* | RemoveAppxPackage

GetAppxPackage *CommsPhone* | RemoveAppxPackage

GetAppxPackage *windowsphone* | RemoveAppxPackage

GetAppxPackage *photos* | RemoveAppxPackage

GetAppxPackage *WindowsScan* | RemoveAppxPackage

GetAppxPackage *bingsports* | RemoveAppxPackage

GetAppxPackage *windowsstore* | RemoveAppxPackage

GetAppxPackage *Office.Sway* | RemoveAppxPackage

GetAppxPackage *Twitter* | RemoveAppxPackage

GetAppxPackage *soundrecorder* | RemoveAppxPackage

GetAppxPackage *bingweather* | RemoveAppxPackage

GetAppxPackage *xboxapp* | RemoveAppxPackage

GetAppxPackage *XboxOneSmartGlass* | RemoveAppxPackage

You Might Also like To Know….

I am trying to Sysprep and get an error that is cannot validate windows. I have done some research and it looks like an issue with some removed appx’s. The image before this one was captured on an old employees laptop and I figure that is where the problem starts. I have found some powershell commands and have removed it, rebooted, and tried again with Sysprep and it still fails. Any ideas? Here is the error log.

2018-12-06 14:54:46, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) — validating whether all apps are also provisioned.

2018-12-06 14:54:47, Error SYSPRP Package Microsoft.Windows.SecondaryTileExperience_10.0.0.0_neutral__cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2018-12-06 14:54:47, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2018-12-06 14:54:47, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2018-12-06 14:54:47, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2018-12-06 14:54:47, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2018-12-06 14:54:47, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

2018-12-06 14:54:47, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2018-12-06 14:54:47, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

2018-12-06 14:54:49, Info [0x0f0052] SYSPRP Shutting down SysPrep log

2018-12-06 14:54:49, Info [0x0f004d] SYSPRP The time is now 2018-12-06 14:54:49

  • Evolution sound studio pro ii windows 7 64 bit
  • Everest ultimate edition для windows
  • Evolis pebble 4 драйвер windows 10
  • Evil genius 2 не запускается на windows 10
  • Everything поисковик для windows 10