Does deprovision app package completely remove it?  


  1. Posts : 23
    Windows 10
       #1

    Does deprovision app package completely remove it?


    I have a question that might be stupid, but, I made a script to remove the apps I don't use (or care about, which is essentially everything minus the calc and the store for "just in case" moments); but I've used the command to deprovision a package from all users.

    Now to my questions, when you deprovision a package is the app actually completely removed from the system including it's settings and two, the only way to get it back is re-provision the package(s) and do a feature or in-place upgrade?

    This is the script I made

    Code:
    $ProvisionedAppPackageNames = @(	"Microsoft.Wallet"
    	"Microsoft.ScreenSketch"
    	"Microsoft.VP9VideoExtensions"
    	"Microsoft.MSPaint"
    	"Microsoft.WebpImageExtension"
    	"Microsoft.MicrosoftOfficeHub"
    	"Microsoft.DesktopAppInstaller"
    	"Microsoft.Getstarted"
    	"Microsoft.Microsoft3DViewer"
    	"Microsoft.XboxApp"
    	"Microsoft.MixedReality.Portal"
    	"Microsoft.BingWeather"
    	"Microsoft.WindowsCamera"
    	"Microsoft.WindowsFeedbackHub"
    	"Microsoft.ZuneMusic"
    	"Microsoft.WebMediaExtensions"
    	"Microsoft.SkypeApp"
    	"Microsoft.People"
    	"Microsoft.MicrosoftStickyNotes"
    	"Microsoft.GetHelp"
    	"Microsoft.MicrosoftSolitaireCollection"
    	"Microsoft.HEIFImageExtension"
    	"microsoft.windowscommunicationsapps"
    	"Microsoft.WindowsSoundRecorder"
    	"Microsoft.WindowsMaps"
    	"Microsoft.Windows.Photos"
    	"Microsoft.ZuneVideo"
    	"Microsoft.Office.OneNote"
    	"Microsoft.549981C3F5F10"
    	"Microsoft.WindowsAlarms"
    	"Microsoft.YourPhone"
    )
    foreach ($ProvisionedAppName in $ProvisionedAppPackageNames) {
        Get-AppxPackage -Name $ProvisionedAppName -AllUsers | Remove-AppxPackage
        Get-AppXProvisionedPackage -Online | Where-Object DisplayName -EQ $ProvisionedAppName | Remove-AppxProvisionedPackage -Online
    }
    Thanks in advance.
      My Computer


  2. Posts : 1,747
    Windows 10 Pro x64 22H2
       #2

    Your first command removes provisioned apps for user accounts that are already created, second command removes packages for user account that may be created in the future.

    So yes those apps should be gone for good, however you can make a very simple test that will confirm your concern:

    After you remove provisioned packages including those already in use, create a new user account and see if those apps are there, also see if those apps are in your current user account.

    EDIT:

    You may have noticed removing apps does not work, if so you can change your second command to this:

    Code:
    Get-AppXProvisionedPackage -Online | Where-Object { [array]::Find($ProvisionedAppPackageNames, [System.Predicate[string]] { $args[0] -eq $_.DisplayName }) } | Remove-AppxProvisionedPackage
    Last edited by zebal; 12 Mar 2021 at 17:07.
      My Computer


  3. Posts : 23
    Windows 10
    Thread Starter
       #3

    zebal said:
    Your first command removes provisioned apps for user accounts that are already created, second command removes packages for user account that may be created in the future.

    So yes those apps should be gone for good, however you can make a very simple test that will confirm your concern:

    After you remove provisioned packages including those already in use, create a new user account and see if those apps are there, also see if those apps are in your current user account.

    EDIT:

    You may have noticed removing apps does not work, if so you can change your second command to this:

    Code:
    Get-AppXProvisionedPackage -Online | Where-Object { [array]::Find($ProvisionedAppPackageNames, [System.Predicate[string]] { $args[0] -eq $_.DisplayName }) } | Remove-AppxProvisionedPackage
    Thanks, apps seem to be removed though since I cannot restore them in anyway. (well, I think I can download them from the store)
      My Computer


  4. Posts : 1,747
    Windows 10 Pro x64 22H2
       #4

    Hi, why restoring apps if your goal was to get rid of them?

    I've never done this but this link may help:
    Restore Windows Store in Windows 10 after uninstalling it with PowerShell - Winhelponline
      My Computer


  5. Posts : 18,042
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #5

    Hello @hachiroku,

    hachiroku said:
    I have a question that might be stupid, but, I made a script to remove the apps I don't use (or care about, which is essentially everything minus the calc and the store for "just in case" moments); but I've used the command to deprovision a package from all users.

    Now to my questions, when you deprovision a package is the app actually completely removed from the system including it's settings and two, the only way to get it back is re-provision the package(s) and do a feature or in-place upgrade?

    Have you seen these [ probably the second one will be of more benefit ]? . . .

    > How to Uninstall Desktop Apps and Windows Apps in Windows 10
    > Completely uninstall provisioned apps: how-to and detailed explanation

    I hope this helps.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 14:45.
Find Us




Windows 10 Forums