> For the complete documentation index, see [llms.txt](https://www.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdeploy.com/archive/blog/2018/windows-10-1809-appx-issues.md).

# Windows 10 1809 Appx Issues

{% hint style="success" %}
This issue does not occur when using [**`Mount-WindowsImage`**](https://docs.microsoft.com/en-us/powershell/module/dism/mount-windowsimage?view=win10-ps) without the **`-Optimize`** parameter. Thanks [**Johan**](https://twitter.com/jarwidmark/status/1063594435252875265)!
{% endhint %}

{% embed url="<https://aka.ms/AA38dwn>" %}

There seems to be an issue with Windows 10 1809 where Appx Provisioned Packages can't be removed from a Mounted Image.

## The Setup

I start with 4 WIM files renamed with the appropriate UBR for each

* 17134.407 - Windows 10 Enterprise x64 **1803**
* 17763.1 - Windows 10 Enterprise x64 **1809** (October 9, 2018 "First Release")
* 17763.107 - Windows 10 Enterprise x64 **1809** (November 13, 2018 "Second Release")
* 17763.134 - Windows 10 Enterprise x64 **1809** ("Second Release" + SSU KB4465664 + CU KB4467708)

![](https://3996045416-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LRSYawQ-4V3FfQ16uph%2F-LRS_ReegpzlC2zDtJ_y%2F2018-11-16_11-33-15.png?alt=media\&token=2f8220ad-a92b-4c58-84f4-2befc6e1a12b)

## The Script

A simple PowerShell script is used to complete the following

* Mount the Image
* Remove the Zune Video package (with logging)
* Dismount the Image

```
$SourceDir = 'C:\DEV\Appx'
$Images = @('17134.407','17763.1','17763.107','17763.134')

foreach ($UBR in $Images) {
    New-Item -Path "$SourceDir\$UBR-Mount" -ItemType Directory -Force | Out-Null
    Mount-WindowsImage -Path "$SourceDir\$UBR-Mount" -ImagePath "$SourceDir\$UBR.wim" -Index 1 -Optimize
    
    Get-AppxProvisionedPackage -Path "$SourceDir\$UBR-Mount" | `
    Where-Object {$_.PackageName -like "*ZuneVideo*"} | `
    Remove-AppxProvisionedPackage -LogPath "$SourceDir\$UBR.log"
    
    Dismount-WindowsImage -Path "$SourceDir\$UBR-Mount" -Discard
}
```

## The Errors

All three versions of Windows 10 1809 resulted in the following error message. Windows 10 1803 worked perfectly.

![](https://3996045416-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LRSfv2vS5VDTKer3Fzy%2F-LRSg0VC36-udyjirspm%2F2018-11-16_12-01-03.png?alt=media\&token=6f695816-7fef-4787-a2d3-269d2e7a9d6c)

## The Logs

Windows 10 1803 works perfectly when removing Zune Video as expected

{% file src="/files/-LRShNEfABMYwVmucAJC" %}
Windows 10 1803 Remove Appx Provisioned Package Log
{% endfile %}

![Windows 10 1803](https://3996045416-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LRSfv2vS5VDTKer3Fzy%2F-LRSh48DyhG42LMtiW45%2F2018-11-16_12-05-42.png?alt=media\&token=39e4183b-04f4-447e-8d04-ef93147cb044)

Windows 10 1809 fails when removing Zune Video with errors. This occurs in all 1809 UBRs (17763.1, 17763.107, and 17763.134)

{% file src="/files/-LRSiBnC8REzKBwYct3b" %}
Windows 10 1809 17763.1 Log
{% endfile %}

{% file src="/files/-LRShf90-7-AZ4HZJ4Yi" %}
Windows 10 1809 17763.107 Log
{% endfile %}

{% file src="/files/-LRSiGSXv8z4HQfwIzpP" %}
Windows 10 1809 17763.134 Log
{% endfile %}

![Windows 10 1809](https://3996045416-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LRSfv2vS5VDTKer3Fzy%2F-LRSgjbki2vOnXRwQ7RT%2F2018-11-16_12-04-25.png?alt=media\&token=ce4b9993-93da-4a75-9fa9-b6f03b8554f5)

## The Conclusion

There are obviously some internal DISM issues with Windows 10 1809. I would be very cautious about any Enterprise deployment until this can be addressed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.osdeploy.com/archive/blog/2018/windows-10-1809-appx-issues.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
