Directly contact our Support Team

How to troubleshoot cloning a Windows system with Sysprep tool when a Bitdefender security agent is installed

Symptoms

When using System Preparation tool to generalize a Windows installation by running the sysprep /generalize command, and an antivirus is present on the Windows machine that you want to clone, Sysprep may be unable to run properly due to antivirus self-protection.

The "Windows could not finish configuring the system. To attempt to resume configuration, restart the computer." error may appear at Windows startup.

Troubleshooting

This procedure applies if one of the following Bitdefender security agents is installed on the endpoint: Bitdefender Endpoint Security Tools (BEST), Endpoint Security, and Bitdefender Tools.

To determine if the issue is generated by the Bitdefender security agent:

  1. Press SHIFT+F10 to open a Command Prompt window.
  2. Navigate to C:WindowsPanther.
  3. Copy the Setup.etl file from the corrupted system to a second Windows machine.
    Note: For ease of access, you may put it on the root of the C: drive.
  4. Open a Command Prompt window on the second Windows computer.
  5. Navigate to the location where you saved the file.
  6. Type tracerpt setup.etl -o logfile.csv
  7. Open logfile.csv in your text editor of choice.
  8. Search for "Failed to process reg key or one of its descendants" message.
  9. e.g.: "Failed to process reg key or one of its descendants: [REGISTRYMACHINESOFTWAREBitdefender]"

Solution

To overcome this error when the endpoint is protected by Bitdefender, follow these steps:

For environments with Active Directory

  1. Make sure that Windows OS and Endpoint Security by Bitdefender are up to date.
  2. Download Bitdefender Endpoint Security Patch for Sysprep.
  3. Create a Group Policy Object (GPO): Group Policy Management Console (gpmc.msc) > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown) > Double-click on Shutdown > Add the script to be run at every shutdown.
  4. Assign this Group Policy to be applied only on the machine that will be used as Master Machine (the machine that will be used for sysprep).
  5. Run: sysprep /generalize.

For environments without Active Directory

  1. Make sure that Windows OS and Endpoint Security by Bitdefender are up to date.
  2. Download Bitdefender Endpoint Security Patch for Sysprep.
  3. Add the script to a local shutdown policy: Local Group Policy Editor (gpedit.msc) > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown) > Double-click on Shutdown > Add the script to be run at every shutdown.
  4. Run sysprep /generalize.
  5. Remove the Local Policy from the newly cloned machine.
note Note:

Bitdefender Endpoint Security Patch for Sysprep is updated regularly, so before cloning the virtual machine, download the patch again to make sure that you have the latest version.

Related articles

Microsoft Technet articles:


Rate this article:

Submit