Windows 10: Does deprovision app package completely remove it?

Discus and support Does deprovision app package completely remove it? in Windows 10 Software and Apps to solve the problem; 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... Discussion in 'Windows 10 Software and Apps' started by hachiroku, Mar 12, 2021.

  1. hachiroku Win User

    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:
    Thanks in advance.

    :)
     
    hachiroku, Mar 12, 2021
    #1
  2. ddelo Win User

    Reprovisioning a deprovisioned Windows app

    Let's try the following scenario, for example for the Microsoft.Office.OneNote app. The same applies for other apps.

    Based on OPTION THREE of the tutorial by Shawn @Brink:

    1. If we want to uninstall the app, for all users, we run the command:
    Code:
    2. To prevent the app from new accounts created afterward, we run the command:
    Code:
    The deprovision command does what is supposed to do and creates the following reg key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\Mic rosoft.Office.OneNote_8wekyb3d8bbwe

    So far so good.

    What if the deprovision command was run by mistake or we changed our mind and we want to allow the app for the new accounts created afterward?

    The easy solution will be to go to the Store, find the app (Microsoft.Office.OneNote in our example) and reinstall it.
    Which works perfectly; the app is there for the current account and AllUsers. However, the reg entry is still there showing the app deprovisioned for future accounts.

    How can we undo/reverse the deprovision for future accounts?
    Is it as simple as deleting the reg entry, OR we need to do something else to reprovision the app?
     
    ddelo, Mar 12, 2021
    #2
  3. KIKI_KEL Win User
    Deprovision

    If my account is deprovisioned, can i get it back?

    ***Post moved by the moderator to the appropriate forum category.***
     
    KIKI_KEL, Mar 12, 2021
    #3
  4. Mark0 Win User

    Does deprovision app package completely remove it?

    Completely uninstall provisioned apps: how-to and detailed explanation

    Sorry, that can't work, because you're searching for neutral after quering without -PackageTypeFilter. That is: you retrieve only Main and Framework packages and then you search the ones with an undefined architecture.
    You should rather use:
    Code:
    But I would suggest you to query the registry as I suggested in my last post. That should be even better because you're not relying on assumptions on Get-AppxPackage. With a registry query you're asking Windows which Bundle apps it has installed.
    Or, if you feel like, try both and compare the results. *Biggrin
    Cheers,
    Mark
     
    Mark0, Mar 12, 2021
    #4
Thema:

Does deprovision app package completely remove it?

Loading...
  1. Does deprovision app package completely remove it? - Similar Threads - Does deprovision app

  2. Remove a provisioning package

    in Windows 10 Gaming
    Remove a provisioning package: Hello Please i need your help on this issue.We are trying to remove a provisioning package and obtaining full admin provision on a computer PC.I want to remove a user's computer from the device Intune management. To give the user full access so she can install and download...
  3. Remove a provisioning package

    in Windows 10 Software and Apps
    Remove a provisioning package: Hello Please i need your help on this issue.We are trying to remove a provisioning package and obtaining full admin provision on a computer PC.I want to remove a user's computer from the device Intune management. To give the user full access so she can install and download...
  4. Remove an advertised package

    in Windows 10 Installation and Upgrade
    Remove an advertised package: I advertised a package using "msiexec /j "install.msi" on Windows 10 machine.Now I am not able to install the advertised package from Add or Remove program.Moreover, I am not able to remove the advertised package.Where do I see the advertised package on Windows 10?How do I...
  5. Remove an advertised package

    in Windows 10 Gaming
    Remove an advertised package: I advertised a package using "msiexec /j "install.msi" on Windows 10 machine.Now I am not able to install the advertised package from Add or Remove program.Moreover, I am not able to remove the advertised package.Where do I see the advertised package on Windows 10?How do I...
  6. Remove an advertised package

    in Windows 10 Software and Apps
    Remove an advertised package: I advertised a package using "msiexec /j "install.msi" on Windows 10 machine.Now I am not able to install the advertised package from Add or Remove program.Moreover, I am not able to remove the advertised package.Where do I see the advertised package on Windows 10?How do I...
  7. How to remove Windows Packaged Apps from Domain Users

    in Microsoft Windows 10 Store
    How to remove Windows Packaged Apps from Domain Users: Dear Community, I have not found a good way to remove most of my Domain Users' Windows Packaged Apps. A. I cannot use AppLocker from GPO, because my users are using Windows 10 Pro. I believe AppLocker only applies for Windows 10 Enterprise and Education. B. I...
  8. Unable to Remove/Uninstall an App completely

    in Windows 10 BSOD Crashes and Debugging
    Unable to Remove/Uninstall an App completely: Dear community, So I recently downloaded an app and unfortunately got bundled up with some junk virus software. I was trying to remove the software but somehow were not able to remove it completely. It kept showing up in my list of Apps & features, but the Modify and...
  9. Reprovisioning a deprovisioned Windows app

    in Windows 10 Software and Apps
    Reprovisioning a deprovisioned Windows app: Let's try the following scenario, for example for the Microsoft.Office.OneNote app. The same applies for other apps. Based on OPTION THREE of the tutorial by Shawn @Brink: 1. If we want to uninstall the app, for all users, we run the command: Code: Get-AppxPackage...
  10. Windows 10 Apps Completely Removed

    in Windows 10 Software and Apps
    Windows 10 Apps Completely Removed: So I had a virus on my computer that I managed to get rid of. However, ever since the virus I have not been able to use any of the windows 10 preinstalled apps (such as photos, windows store, etc.) I am quite good and surfing the web, and I have looked everywhere, but nothing...