DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?
-
I'm trying to clean up some unneeded Windows 10 apps. But I'm not sure about what method to use.
Does anyone know the difference between using:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.826.98.0...
versus using:
Get-AppxPackage *camera* | Remove-AppxPackage
-
@Pete-S said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
I'm trying to clean up some unneeded Windows 10 apps. But I'm not sure about what method to use.
Does anyone know the difference between using:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.826.98.0...
versus using:
Get-AppxPackage *camera* | Remove-AppxPackage
Dism is an exe, the other is a PowerShell cmdlet.
I don't recall which one, but I think the verb-appxprovisionedpackage is more similar to dism?
I don't remember anymore, it's been like 6 years now since I dove I to it when I wrote the Win10 crApp Remover.
But here's the docs
-
@Obsolesce said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
@Pete-S said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
I'm trying to clean up some unneeded Windows 10 apps. But I'm not sure about what method to use.
Does anyone know the difference between using:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.826.98.0...
versus using:
Get-AppxPackage *camera* | Remove-AppxPackage
Dism is an exe, the other is a PowerShell cmdlet.
I don't recall which one, but I think the verb-appxprovisionedpackage is more similar to dism?
I don't remember anymore, it's been like 6 years now since I dove I to it when I wrote the Win10 crApp Remover.
But here's the docs
Awesome thanks!
Links are great, it looks like there is all the information I need.
I can see that you've put in an impressive amount of work making your Win10 crApp remover. I'll take a closer look at how you disable and uninstall things in your code.
-
@Pete-S said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
@Obsolesce said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
@Pete-S said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
I'm trying to clean up some unneeded Windows 10 apps. But I'm not sure about what method to use.
Does anyone know the difference between using:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.826.98.0...
versus using:
Get-AppxPackage *camera* | Remove-AppxPackage
Dism is an exe, the other is a PowerShell cmdlet.
I don't recall which one, but I think the verb-appxprovisionedpackage is more similar to dism?
I don't remember anymore, it's been like 6 years now since I dove I to it when I wrote the Win10 crApp Remover.
But here's the docs
Awesome thanks!
Links are great, it looks like there is all the information I need.
I can see that you've put in an impressive amount of work making your Win10 crApp remover. I'll take a closer look at how you disable and uninstall things in your code.
To save you some time looking through that crAppy code, it basically comes down to two lines, 626 and 640.
-
@Obsolesce said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
To save you some time looking through that crAppy code, it basically comes down to two lines, 626 and 640.
I ended up doing something like this:
# apps to remove $apps = '*549981C3F5F10_*', '*GetHelp_*', '*Getstarted_*', '*Microsoft3DViewer_*', '*MicrosoftOfficeHub_*', '*MicrosoftSolitaireCollection_*', '*MixedReality.Portal_*', '*Office.OneNote_*', '*People_*', '*SkypeApp_*', '*Wallet_*', '*windowscommunicationsapps_*', '*WindowsFeedbackHub_*', '*WindowsMaps_*', '*Xbox*', '*YourPhone_*', '*Zune*'; foreach ($app in $apps) { Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online Get-AppxPackage -Name $app | Remove-AppxPackage -AllUsers }
Code needs to run as Administrator.
Removes packages for new users as well as users already on the system.
Windows shouldn't re-install them when you get updates. -
@Pete-S said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
@Obsolesce said in DISM /Remove-ProvisionedAppxpackage vs Remove-AppxPackage?:
To save you some time looking through that crAppy code, it basically comes down to two lines, 626 and 640.
I ended up doing something like this:
# apps to remove $apps = '*549981C3F5F10_*', '*GetHelp_*', '*Getstarted_*', '*Microsoft3DViewer_*', '*MicrosoftOfficeHub_*', '*MicrosoftSolitaireCollection_*', '*MixedReality.Portal_*', '*Office.OneNote_*', '*People_*', '*SkypeApp_*', '*Wallet_*', '*windowscommunicationsapps_*', '*WindowsFeedbackHub_*', '*WindowsMaps_*', '*Xbox*', '*YourPhone_*', '*Zune*'; foreach ($app in $apps) { Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online Get-AppxPackage -Name $app | Remove-AppxPackage -AllUsers }
Code needs to run as Administrator.
Removes packages for new users as well as users already on the system.
Windows shouldn't re-install them when you get updates.Looks good.
That said, if the devices are managed with MDM for example, it's typically best practice to Uninstall all that kind of apps for the user through a user assigned script or required app... instead of at the image or predeployment level.
-
@Pete-S using your little snippet did not clean up the pinned start menu of the initial admin user that ran it, nor the non admin user account that I subsequently created.
It xbox was still in the start menu, but the rest looked gone.
-
This post is deleted!