How can we help?
Welcome to our Support Portal. Search for answers using the search box below.,
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.
- Navigate to:
C:\Windows\System32\Sysprep\Panther\ - Open
setupact.log(orsetuperr.log) using Notepad. - Search for the term
Failed to remove appsorwas installed for a user, but not provisioned for all users. - 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:powershell
Remove-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:powershell
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like "*PART_OF_APP_NAME*"} | Remove-AppxProvisionedPackage -OnlineUse 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.
- Press
Win + R, typesysdm.cpl, and press Enter. - Go to the Advanced tab.
- Under User Profiles, click Settings.
- 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 /generalizecommand without restarting the computer first.