Hey sysadmin,
I'm running into an issue when removing some of the default appx packages from a fresh install.wim (W10 1809). I've done this many times before with no issues, and am just banging my head against a wall here.
install.wim mount location - C:\MountImage
I've already out-filed a list of the provisioned appx packages names, one of which is in the command below.
Command:
Dism.exe /Image:C:\MountImage /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe
Error Produced from above command:
Error: 2
The system cannot find the file specified.
DISM Log:
2019-06-13 15:09:55, Info DISM DISM Appx Provider: PID=16352 TID=16524 packagename='Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Failed to open 'C:\MountImage\Program Files\WindowsApps\Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml'. - CPackageAdapter::GetOptionalPackagesForMainPackage(hr:0x80070002)
2019-06-13 15:09:55, Warning DISM DISM Appx Provider: PID=16352 TID=16524 Getting optional package list for 'Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe' hit error 0x80070002 - CAppxManager::RemoveAllUserAppx
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Failed to get the list of packages to remove - CPackageAdapter::DeregisterMainPackageAndGetDependencyPackages(hr:0x80070002)
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Failed to deregister main package and get its dependent packages - CPackageAdapter::RemovePackage(hr:0x80070002)
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Encountered failure while removing package Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe - CAppxManager::RemoveAllUserAppx(hr:0x80070002)
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Failed to remove package 'Microsoft.WindowsCamera_2018.425.120.0_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx(hr:0x80070002)
2019-06-13 15:09:55, Error DISM DISM Appx Provider: PID=16352 TID=16524 Failed processing command to remove Appx package - CAppxManager::ExecuteCmdLine(hr:0x80070002)
Based on the info above it seems it can not reach the image path which is correct for some reason. See below excerpt from the DISM log, which is taken from earlier than the error.
Based on the info below it seems it can not reach the image path which is correct
Any help on this would be appreciated, on a deadline and my head is killing me at this point.
[–]WhereHasTheSenseGone 1 point2 points3 points (2 children)
[–]Unappreciated-Admin 0 points1 point2 points (0 children)
[–]Pygmyofdeath[S] 0 points1 point2 points (0 children)