How to View Deployment Operation Failed Logs from PowerShell & Event Viewer.

Last updated on September 24th, 2019

If you experience problems during the installation of app packages, by using the "Add-AppxPackage" cmdlet in PowerShell, read below on how you can view the deployment operation failed error log, in order to troubleshoot the installation issues.

How to View Deployment Operation failed Errors (Add-AppxPackage Errors) from PowerShell & Event Viewer.

During the AppX package deployment operation, if a problem is occurred then an error is displayed immediately on the current PowerShell window. However, if the deployment operation encounters several problems, then it is a little difficult to read and examine all the errors in the current PowerShell window.

This tutorial contains step-by-step instructions on how to view the installation errors after deploying app packages in Windows 10 & Server 2016. (How to View 'Add-AppxPackage' Logs/Errors)

How to View the "Add-AppxPackage" cmdlet Log/Errors. (Deployment Operation Failed).

Method 1. View the Installation Errors of the AppX Packages from PowerShell
Method 2. View app package installation logs in Event Viewer.

Method 1. How to view the Deployment Operation Failed errors from PowerShell

The first way to view the "deployment failed" errors after executing the 'Add-AppxPackage' cmdlet, in Windows 10 or in Server 2016, is to use the "Get-AppxLastError" cmdlet on the current PowerShell session. *

* Note: The Get-AppxLastError cmdlet show a list of the last error(s) reported in the app package installation logs for the current Windows PowerShell® session.

For example: if you want to view the installation errors after executing the following command to re-register (reinstall) all the built in apps…

  • Get-AppxPackage | Foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}

…then at the current PowerShell window, type:

  • Get-AppxLastError

view Add-AppxPackage Errors in PowerShell

Method 2. How to view App Package installation logs in Event Viewer.

The second method to view and examine the deployment operation logs after executing the "Add-AppxPackage" command, is by using the Event Viewer. To do that:

1. Simultaneously press the Windows image + R keys to open run command box.
2. In run command box, type: eventvwr.msc press Enter.


3. In Event viewer go to:

Applications and Services Logs -> Microsoft -> Windows -> AppXDeployment-Server -> Microsoft-Windows-AppXDeploymentServer/Operational

View AppX deployment  Log / Errors in Event Viewer

4. At the right pane, you will see the detailed list of events during the deployment operation process.

5. If you want to see only the AppX deployment (installation) errors, then click Create Custom View.

Add-AppxPackage Event Viewer Log

6. At 'Create Custom View' options, check the Error box and click OK.

view errors add package event viewer

7. Then give a name (if you want) for the custom view and click OK.

create bew view - event viewer

8. Now, at the right pane you should see and explore all the installations errors of the AppX deployment operation.

view deployemnt operation errors event viewer

That's it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free: