Removed Appx Package from old user profile

Ashwani Rajput 0 Reputation points
2024-10-04T07:47:55.7333333+00:00

Hi,

Removed Appx Package from old user profile but it showing pending removal and due to this I am not able to run sysprep.
Deleted user profile form Regedit and C drive also cleaned registry setting for that package and user...
removed package from Package location but nothing is working.

User's image

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,704 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,487 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 10,205 Reputation points
    2024-10-07T08:00:27.5966667+00:00

    Hello,

    For your problem, here are some possible steps and suggestions:

    Use the PowerShell command to force the deletion:

    You can try using the PowerShell command to force the Appx package to be deleted. For example, use the Remove-AppxPackage command and specify the full name of the package to be deleted. Note that you need administrator rights to do this.

    To clean up the pending state of Appx packages:

    Sometimes the suspended state of an Appx package can be caused by an error during installation or uninstallation. You can try using the DISM (Deployment Image Service and Management) tool to clean up these pending states. For example, run the DISM /Online /Cleanup-Image /RestoreHealth command to repair the integrity of the system image and possibly resolve issues with the hanging state.

    Check system logs:

    View the system logs for more information about Appx package suspension status. This can be done through the event viewer. In the Event Viewer, look for error or warning events related to the Appx package and try to resolve the problem based on the information from these events.


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.