Executing sysprep.exe with unattend.xml in windows 10,and get a error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SLReArmWindows' from C:\Windows\System32\slc.dll; dwRet = 0xc004f075

icedxu 5 Reputation points
2024-01-18T03:29:35.3666667+00:00

I use sysprep to reset vm sid with unattend.xml, but I get a error

SYSPRP Exiting SysprepGeneralize (Appx). SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll SYSPRP ActionPlatform::LaunchModule: Executing method 'SLReArmWindows' from C:\Windows\System32\slc.dll SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SLReArmWindows' from C:\Windows\System32\slc.dll; dwRet = 0xc004f075 SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0xc004f075 SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-Security-SPP; dwRet = 0xc004f075 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0xc004f075 SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0xc004f075 SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0xc004f075 SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0xc004f075

and my full unattned.xml

<?xml version="1.0" encoding="utf-8"?> 
<unattend xmlns="urn:schemas-microsoft-com:unattend">  
   <settings pass="generalize">        
	 <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">       
       <SkipRearm>1</SkipRearm>     
     </component>    
  </settings>   
  <settings pass="oobeSystem">     
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">       
   <OOBE>              
   <HideEULAPage>true</HideEULAPage>    
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>                      <NetworkLocation>Work</NetworkLocation>                                      <ProtectYourPC>3</ProtectYourPC>                                             <SkipMachineOOBE>true</SkipMachineOOBE>                                      <SkipUserOOBE>true</SkipUserOOBE>                         
 </OOBE>                                                 
 </component>   
  </settings> 
</unattend>
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,062 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,797 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
3,003 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,199 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Wesley Li 11,085 Reputation points
    2024-01-24T08:47:40.5433333+00:00

    Hello, According to the error code, try use the <SkipRearm> setting in an XML answer file (Unattend.xml) to skip the Rearm process when you build the Windows image. The following text is an example of an XML answer file: <settings pass="generalize"> <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SkipRearm>1</SkipRearm> </component> </settings> You must make sure that the <SkipRearm> setting is removed from the final unattended file that is used to deploy computers in a production environment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.