none
Syprep Generalize Erreur RRS feed

  • Question

  • Bonjour, suite a une preparation d'image Windows 10 Edu en vue d'un déploiement WDS nous rencontrons des difficultés lors de la phase sysprep.exe /generalize /oobe /shutdown.

    Le setuperr.log nous retourne ces différentes anomalies :

    -----------------------------------------------------------------------------------------------

    2017-03-15 09:42:39, Error                 SYSPRP setupdigetclassdevs failed with error 0
    2017-03-15 09:42:39, Error                 SYSPRP Failed to remove staged package Microsoft.WindowsAlarms_10.1701.10103.0_x64__8wekyb3d8bbwe: 0x80070002.
    [gle=0x00000002]
    2017-03-15 09:42:39, Error                 SYSPRP Failed to remove apps for the current user: 0x80070002.

    2017-03-15 09:42:39, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x2.

    2017-03-15 09:42:39, Error                 SYSPRP Failed to remove all apps: 0x80070002.

    2017-03-15 09:42:39, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x2
    2017-03-15 09:42:39, Error                 SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x2
    2017-03-15 09:42:39, Error                 SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0x2
    2017-03-15 09:42:39, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
    2017-03-15 09:42:39, Error                 SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x2
    2017-03-15 09:42:39, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
    2017-03-15 09:42:39, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002
    2017-03-15 09:45:50, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
    2017-03-15 09:45:50, Error                 SYSPRP WinMain:Hit failure while processing sysprep re-specialize internal providers; hr = 0x8007001f

    ----------------------------------------------------------------------------------------

    Afin de résoudre le problème lié au windows Store et a ce package Microsoft.WindowsAlarms. nous effectuons plusieurs étapes successives :

    1-Dans le registre on modifie :
    HKEY_LOCAL_MACHINE\System\Setup\Status\SysprepStatus

    2-Mettre la valeur CleanupState à 2.  
    Puis mettre la valeur GeneralizationState à 7.

    3-On execute la commande

    msdtc -uninstall
    msdtc -install

    On Redémarre le poste


    4-Pour finir mettre on modifie la valeur SkipRearm à 1 sous
    HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform.

    5-En powershell executé en administrateur on supprime le package WindowsAlarms

    Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage
    Get-AppxPackage -allUsers Microsoft.WindowsAlarms | Remove-AppxPackage

    Apres vérification dans Obs Evènement le package n'est plus present.

    6-Suppression du dossier panthers c:\Windows\System32\Sysprep\

    7-On Stoppe le service StateRepository et on déconnecte toutes les interfaces réseaux
     
    et enfin on execute sysprep en commande en administrateur
    sysprep.exe /generalize /oobe /shutdown.

    Malheureusement nous avons toujours les erreurs énoncé plus haut.

    Merci par avance de votre réponse.

    mercredi 15 mars 2017 09:23

Réponses

Toutes les réponses