- Windows Powershell is a powerful tool for executing commands but sometimes, these commands may not yield the expected results.
- If you have recently encountered issues with the Add-appxpackage command, it could be because you're operating a corrupt user profile.
- Switching to a new profile is a quick workaround but you might want to run the SFC scan to get rid of the issue in its entirety.
The Add-appxpackage is part of a command line that is used to reinstall applications in Windows devices. It is a faster and more straight-forward method for users who appreciate just how powerful the Command Prompt and Powershell utilities are.
However, it now seems that executing the command does not bring desired results and users are hit with a add-appxpackage : deployment failed with hresult: 0x80073cf6, package could not be registered message.
Why does the Add-appxpackage Deployment Failed With Hresult error occur?
If you’re trying to execute the reinstalling an app command, but it keeps returning a failed result, below are some possible causes:
- Corrupt files – There’s a chance that one or more of your system files may be corrupted and preventing other operations from taking place.
- App remnants – Uninstalling an app often leaves behind some software leftovers that need to be removed such as the application’s installation files and registry entries which prevent the reinstallation process from succeeding.
- Incompatible software – Some software may not be compatible with your OS. This is a common issue, as there are many different types of software available for use.
- Corrupt user profile – If the user profile on your computer has become corrupted then it may prevent some programs from running correctly.
- Windows Update issues – If you have recently installed new updates and noticed this issue, it could be a problematic update. You can choose to uninstall the updates or check whether there are newer updates to fix the bug.
This error is not exclusive to Windows as Xbox users too have expressed concern after the Xbox live error code 0x80073cf6 appeared on their consoles especially after installing a game.
How do I fix deployment failed with Hresult?
Before performing any advanced solutions, try the following:
- Check the command again and ensure you’re typing it correctly.
- Close any background apps.
- Restart your PC and here’s what to do if your computer won’t restart.
1. Run the Windows Store troubleshooter
- Hit the Windows key and click on Settings.
- Click on System on the left pane then Troubleshoot on the right pane.
- Select Other troubleshooters.
- Scroll down, locate Windows Store Apps and click the Run button.
Running the Windows Store Apps troubleshooter can help you identify any errors related to the Microsoft Store so that you can establish whether the issue is with the app you’re trying to install or the store.
2. Run the DISM and SFC scans
- Hit the Windows key, type cmd in the search bar, and select Run as administrator.
- Type and Enter the following command:
DISM.exe /Online /Restorehealth
- Allow for the command to be executed then type in the next one:
Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
If the issue was corrupt or missing files, the SFC scan will be able to address this issue. The DISM and SFC commands are two useful tools that can help you repair your system and fix this problem.
The DISM scan will check for any problems with your system files and fix them if they exist. The System File Checker scan makes sure that all of the necessary system files are in place and are working correctly.
If you worry about performing the SFC and DISM scan by yourself, you can use an automatic alternative because it scans your PC for corrupt files and finds healthy replacements from its database.
Easily fix this error by repairing your system files with this handy tool.
3. Reset the Windows Update components
- Hit the Windows key, type Powershell in the search bar, and select Run as administrator.
- Type in the following commands and press Enter after each one:
net stop wuauserv
net stop cryptSvc
net stop bits
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 Catroot2.old
net start wuauserv
net start cryptSvc
net start bits
netsh winsock reset
- Restart your PC.
4. Check for Windows updates
- Hit the Windows key and click on Settings.
- Select Windows Update and click on Check for updates.
- Download and install if available.
5. Create a new user profile
- Hit the Windows + R keys to open the Run command.
- Type netplwiz and press Enter.
- Click Add in the User Accounts window.
- Select Sign in without a Microsoft account (not recommended).
- Click on the Local account button.
- Enter a username and password (optional) for the new user account, and a hint, in case you set a password. Once done, click on Next.
- Click on Finish to create the Local account.
Should all these fail, as a last resort, consider resetting your PC. This will delete all files stored on your computer and restore the operating system to its factory settings. If you decide to reset your PC, we recommend creating a backup of your files before you reset your PC.
For the 0x80073cf6 Xbox One fix, the same solutions listed above could be used where applicable. Otherwise, check the Xbox Live server status or reset your console.
There are a bunch of other Microsoft Store errors that you may come across so feel free to check out our detailed guide on how to solve them.
Let us know if you’ve been able to solve this issue in the comment section below.
Still having issues? Fix them with this tool:
If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.