[Sysprep] fail with sysprep /generalize

2020-07-15T06:54:49.46+00:00

Hello,

I have a problem with my sysprep i have this error

Do you have a idea to solve my problem ?

2019-10-21 12:10:48, Error [shsetup] CleanupAdministratorPassword: NetUserSetInfo(1003) failed (0x800708c5) [gle=0x000003e5]
2019-10-21 12:11:52, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'C:\Windows\System32\silsysprep.dll,Sysprep_Generalize_SilProvider', returned error code 2[gle=0x00000002]
2019-10-21 12:11:52, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 2[gle=0x00000002]
2019-10-21 12:11:52, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002[gle=0x00000002]
2019-10-21 12:15:05, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31
2019-10-21 12:15:05, Error [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f

source link: https://social.technet.microsoft.com/Forums/windows/en-US/4238f12f-fdb3-4bb4-a4f4-f8889f0eabc3/sysprep-fail-with-sysprep-generalize?forum=winserversetup

Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
243 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joy Qiao 4,896 Reputation points Microsoft Employee
    2020-07-15T06:56:06.637+00:00

    Welcome to our new Microsoft Q&A Platform.

    May I know your Windows version?

    Is there WMF 5.0 installed? If yes, please try to remove it and sysprep again. According to my research, it seems a known issue in WMF 5.0.


1 additional answer

Sort by: Most helpful
  1. Trent Rae 1 Reputation point Microsoft Employee
    2020-07-24T14:59:22.217+00:00

    I was getting this same issue however for my resolve on a Windows 10 build 1909 I had to change this Registry entry
    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\ GeneralizationState:7
    Generalization was set to 3

    I have been unable to find anymore information on that key and the settings behind why that would for me if anyone has any insight please let me know. I