PowerShell deployment fails with HRESULT 0x80073D02 issue fixed
Do you see this error message when running the script "Add-AppxPackage: Deployment failed, HRESULT: 0x80073D02, The package cannot be installed because the resource it modifies is currently in use. Error 0x80073D02 in PowerShell… "? As the error message states, this does occur when a user attempts to re-register one or all Windows Shell Experience Host applications while the previous process is running. We've got some simple solutions to fix this problem quickly.
Fix 1 – Kill the Experience Host Process
You must kill the Windows Experience Host process before executing the powershell command.
1. First, you have to open the PowerShell page. So, press the Win key and type "powershell" in the search box.
2. Then, right-click on "Windows PowerShell" and click "Run as administrator".
#3. Now, write the code on the terminal. However, Do notpress the Enter key.
Do not minimize the terminal.
1. Now, you have to open the Task Manager.
You can do this by right-clicking on the Windows icon and clicking "Task Manager".
2. Quickly enter the "Process" tab and scroll down to find the "Windows Shell Experience Host" process.
3. Once you find it, right-click on it and click "End Mission".
[
Also, you can go to the "Details" tab to find " StartMenuExperienceHost.exe "process and kill it too.
]
4. Now, quickly go to the PowerShell terminal and press the Enter key to execute the code.
This will reinstall the Windows Shell Experience Host process.
Fix 2 – Move the exe file
If the first fix doesn’t work, you must move the executable file.
1. Press the Win key and the X key at the same time and click "Task Manager".
2. On the Task Manager page, go directly to the "Details" section.
3. Scroll down slowly, find and right-click the "StartMenuExperienceHost.exe" process, and then click "Open file location".
This will direct you to the actual location of the application files.
4. After that, select " StartMenuExperienceHost.exe " and click on the cut icon( ) to cut it.
5. After that, you can paste it wherever you want (for example -Desktop).
After that, just minimize File Explorer.
Now you can open Windows PowerShell and run the code again. It should work just fine.
6. After the code is successfully executed, return to the file explorer where you cut and pasted "StartMenuExperienceHost.exe".
7. Cut it from there to this position -
C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy
8. After that, paste it there.
In this way, you have moved the application files back to their original location.
Fix 3 – Install pending Windows updates
Check if there are some Windows updates pending, install those updates and run the code.
1. Press the Win key and the I key at the same time to open the settings page.
2. When the settings appear, click Windows Update in the left pane.
3. You can check whether there are updates for your device by clicking "Check for Updates".
#Windows will detect the latest patches or feature updates for your system.
4. Typically, you don't need to click anything and Windows will automatically start downloading the update package.
5. If you do not click "Download Now" to download the update package.
#Windows will download pending updates and install them.
Once Windows has finished downloading pending updates and installing them on your system.
6. Click "Restart Now" to restart the system.
After the system boots, you can execute code from the PowerShell terminal.
The above is the detailed content of PowerShell deployment fails with HRESULT 0x80073D02 issue fixed. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver CS6
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.