And here is the screenshot.
Windows 10 20H2 remove-appxprovisionedpackage
Fresh install. Tried:
Get-AppxPackage -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage –online
When I ran the 2nd line it went through about 4 or 5 packages and then threw an error.
So I ran it again and it completed successfully.
Checked the event logs. Only found warnings.
Strange.
Windows for business | Windows Client for IT Pros | User experience | Other
-
Stan Kasper 1,476 Reputation points
2020-11-06T03:39:50.817+00:00
3 additional answers
Sort by: Most helpful
-
Jenny Yan-MSFT 9,356 Reputation points
2020-11-05T02:35:17.237+00:00 Hi,
What kind of error and warnings you've got? The second command is to remove provisioned package from image.
After which, app packages will not be installed when new user accounts are created.
Hope this helps and please help to accept as Answer if the response is useful.
Thanks,
Jenny -
Stan Kasper 1,476 Reputation points
2020-11-05T17:04:06.857+00:00 I am going to recreate the issue so that I can copy the error message that happens when get-appx runs. I was hoping something would be created in the event log but that was not the case. And again, if you run it twice the 2nd time it goes through removing all the apps without crashing. Will post error message once I capture it.
-
Stan Kasper 1,476 Reputation points
2020-11-13T06:39:37.05+00:00 Thank you for your help. This issue occurs on a clean build of the current 20H2 ISO. It is of minor consequence and is probably already on the list of fixes for the next release. I appreciate help in
pointing me to the dism log. I will keep that in mind when troubleshooting any issues. Please close
the issue.