search
HomeCommon ProblemPowerShell 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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

#3. Now, write the code on the terminal. However, Do notpress the Enter key.

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

[

Also, you can go to the "Details" tab to find " StartMenuExperienceHost.exe "process and kill it too.

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

]

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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

This will direct you to the actual location of the application files.

4. After that, select " StartMenuExperienceHost.exe " and click on the cut icon( PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复) to cut it.

5. After that, you can paste it wherever you want (for example -Desktop).

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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.

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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".

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

#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.

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

#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.

PowerShell 部署失败并出现 HRESULT 0x80073D02 问题修复

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!

Statement
This article is reproduced at:云东方. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor