Home > Common Problem > body text

PowerShell deployment fails with HRESULT 0x80073D02 issue fixed

WBOY
Release: 2023-05-10 11:02:05
forward
4780 people have browsed it

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
Copy after login

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!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template