Skip to main content
How can we help?

Welcome to our Support Portal. Search for answers using the search box below.,

< All Topics
Print

Sysprep “failed to remove apps for the current user” error,

1. Identify the Culprit App

Open the Sysprep log file to find the exact name of the package that halted the process.

  1. Navigate to: C:\Windows\System32\Sysprep\Panther\
  2. Open setupact.log (or setuperr.log) using Notepad.
  3. Search for the term Failed to remove apps or was installed for a user, but not provisioned for all users.
  4. Note down the full package name listed (e.g., Microsoft.BingSearch_8wekyb3d8bbwe).

2. Remove the Problematic Package

Open PowerShell as an Administrator and run the following commands to purge the app completely from the image:

  • Remove it for all users:powershellRemove-AppxPackage -AllUsers -Package "PASTE_FULL_PACKAGE_NAME_HERE" Use code with caution.(e.g., Remove-AppxPackage -AllUsers -Package Microsoft.BingSearch_1.0.0.0_x64__8wekyb3d8bbwe)
  • Remove its system provisioning:powershellGet-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*PART_OF_APP_NAME*"} | Remove-AppxProvisionedPackage -Online Use code with caution.(e.g., use *BingSearch* to wipe its installer payload)

3. Clear Stale User Profiles

If the app was installed under a different user account that you logged into previously, Sysprep will continue to block until that profile is clean.

  1. Press Win + R, type sysdm.cpl, and press Enter.
  2. Go to the Advanced tab.
  3. Under User Profiles, click Settings.
  4. Delete all user profiles except for the current Administrator and Default Profile.

4. Block Future Interference

To stop the Microsoft Store from secretly updating apps and re-breaking Sysprep while you work:

  • Disconnect the network cable or disable the virtual NIC before trying again.
  • Immediately run your sysprep.exe /generalize command without restarting the computer first.