Reprovisioning a deprovisioned Windows app

  1.    25 Apr 2018 #1

    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 -AllUsers Microsoft.Office.OneNote | Remove-AppxPackage
    2. To prevent the app from new accounts created afterward, we run the command:
    Code:
    Get-AppxProvisionedPackage –Online | Where-Object {$_.PackageName –eq "Microsoft.Office.OneNote"} | Remove-AppxProvisionedPackage –Online
    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?
    Last edited by ddelo; 25 Apr 2018 at 09:35.
      My ComputerSystem Spec


 

Tags for this Thread

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 00:24.
Find Us