> 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)

![](/files/-LRS_ReegpzlC2zDtJ_y)

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

![](/files/-LRSg0VC36-udyjirspm)

## 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](/files/-LRSh48DyhG42LMtiW45)

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](/files/-LRSgjbki2vOnXRwQ7RT)

## 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
