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.
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
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 + 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
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.
6. At ‘Create Custom View’ options, check the Error box and click OK.
7. Then give a name (if you want) for the custom view and click OK.
8. Now, at the right pane you should see and explore all the installations errors of the AppX deployment operation.
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.
do earn a commision from sales generated from this link, but at no additional cost to you. We have experience with this software and we recommend it because it is helpful and useful):
Full household PC Protection – Protect up to 3 PCs with NEW Malwarebytes Anti-Malware Premium!