A fatal error occurred while trying to sysprep the computer system

Cause: When you encapsulate the system with SYsprep/generalizing, the system reduces the number of rearm. When REARM is 0, the problem of unencapsulation occurs. The default number of Rearm is 3, which means you can only encapsulate 3 times.
How to resolve this problem:
While holding down the Win +R key, enter Regedit to enter the registry;
Route 1: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ WindowsNT \ CurrentVersion \ SoftwareProtectionPlatform \ SkipRearm set it from 0 to 1
Path 2: HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState set it from 3 to 7;
Setup3: just rerun sysprep.

Read More: