If you want to ensure that Windows 10 doesn’t install built-in apps when a new user logs on, you have to remove all provisioned apps.

Michael Pietroforte

Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience in IT management and system administration.

Installed vs. provisioned apps ^

Before I describe how you can remove all built-in apps, I have to explain the difference between installed and provisioned apps. This difference only exists for the new touch-optimized apps that Microsoft now calls Windows apps.

You’ve probably noticed that, whenever a user logs on the first time on a Windows 10 computer, Windows starts to install apps for that particular user. These apps are the provisioned apps. Likewise, if the user installs a new app from the Windows Store, this app is only available for that user.

Thus, all apps that a particular user can run are the user’s installed apps. On the other hand, the provisioned apps lurk in the background of the system and only come into play whenever a new user logs on.

If you want to ensure that Windows only installs a certain set of apps or no apps at all when a user logs on for the first time, you have to remove all provisioned apps—that is, you have to unprovision the appx packages.

It doesn’t really help if you just uninstall all apps for the user that runs sysprep. Actually, you also have to uninstall all unprovisioned apps for all users; otherwise, sysprep will fail.

Removing provisioned apps ^

Before you delete the provisioned apps, you might want to get a list first:

List all provisioned Windows 10 apps

List all provisioned Windows 10 apps

At an elevated PowerShell prompt, you can remove the apps that you don’t want to have in your reference image with this command:

And, to remove all provisioned apps, you can use this command:

Unprovision all Windows 10 apps

Unprovision all Windows 10 apps

From now on, if a new user logs on to the machine, the only app that will be installed is Edge.

Note that, unlike in Windows 8, in Windows 10 this command also unprovisions the Windows Store app.

As mentioned in my previous post, where I described the different methods to uninstall Windows apps, another option is to simply deploy an image of Windows 10 Enterprise LTSB (Long Term Servicing Branch) edition, which doesn’t come with provisioned Windows apps. A downside could be that you won’t receive any feature updates until Microsoft releases the next LTSB build.

Win the monthly 4sysops member prize for IT pros

Share
2+

Related Posts

62 Comments
  1. Matthew Trimble 2 years ago

    this is the best method I have found. Excellent script ($Appx = Get-AppxPackage | select name
    $appx | Out-File -FilePath C:\Appx.txt) and then use this one. modify with prefered package names from 1rst script ($AppsList = "Microsoft.Office.Onenote","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingWeather","Microsoft.XboxApp","Microsoft.SkypeApp","Microsoft.MicrosoftSolitaireCollection","Microsoft.BingSports","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Windows.Photos","Microsoft.People","Microsoft.MicrosoftOfficeHub","Microsoft.WindowsMaps","microsoft.windowscommunicationsapps","Microsoft.Getstarted","Microsoft.3DBuilder"

    ForEach ($App in $AppsList)
    {
    $PackageFullName = (Get-AppxPackage $App).PackageFullName
    $ProPackageFullName = (Get-AppxProvisionedPackage -online | where {$_.Displayname -eq $App}).PackageName
    write-host $PackageFullName
    Write-Host $ProPackageFullName
    if ($PackageFullName)
    {
    Write-Host "Removing Package: $App"
    remove-AppxPackage -package $PackageFullName
    }
    else
    {
    Write-Host "Unable to find package: $App"
    }
    if ($ProPackageFullName)
    {
    Write-Host "Removing Provisioned Package: $ProPackageFullName"
    Remove-AppxProvisionedPackage -online -packagename $ProPackageFullName
    }
    else
    {
    Write-Host "Unable to find provisioned package: $App"
    }

    })

    Copy-Paste between ( )

    2+

    • Rick 2 years ago

      do you know how to deploy this same script so that it removes all the specified applications from all users and an any future users?

      2+

    • Robert 4 months ago

      Late to the party, but in your first step, I needed to substitute"select-object" for "select name" or "select-name".

      0

  2. Michael Pietroforte 2 years ago

    Matthew, thanks!

    0

  3. akowe 2 years ago

    I tried this on Windows 10 Enterprise and Cortana and Store were not removed. Any ideas?

    2+

  4. Pratheep 2 years ago

    Hello

    What happens when i update an app to the newest Version and run an sysprep? Will it go back to the old Version? I have the Problem that i make an master Image and update all the apps. I use a german os and the apps will be german after the update. After the sysprep all the apps fall back to the english Version. What can i do?

    greetings pratheep

    0

  5. Anthony 2 years ago

    How do you undo this?

    I Want to reprovision the apps in Windows 10

    0

    • Author
      Michael Pietroforte 2 years ago

      This procedure seems to reprovision the Store app. I guess it also works for the other apps. I didn't try it, though. Let me know if it worked.

      However, considering the shaky nature of these apps, I would rather create a fresh image, if you plan to deploy it in your network.  You want to be sure that you deploy a clean install. You don't want to manipulate your master PC in an uncommon way.

      0

  6. Matthew Conlon 2 years ago

    2nd this RICK! HOWWWWWW???

     

    Rick 23 hours ago

    do you know how to deploy this same script so that it removes all the specified applications from all users and an any future users?

    1+

  7. Author
    Michael Pietroforte 2 years ago

    As mentioned in the article, the point about removing the provisioned apps is to ensure that that they are not installed when a new user logs on to the machine. If you want to uninstall apps for existing users, you have to follow one of these procedures for each user that already exits on the computer.

    0

  8. matthew conlon 2 years ago

    Thank you, I was able to remove the provisioned apps. Now I'm ready to setup the default user and what installs after login... CandyCrush and Twitter. Oh Microsoft......

    Thank you MP

    0

  9. BuyEnterpriseSKU 2 years ago

    Here are the issues you will run into via using a script to remove packages:

    1. Certain updates will bring all these apps back from the grave and upgrades to Windows 10 (e.g. the November 1511 upgrade) will also bring them all back from the grave.

    2. If a user profile is already created, it must run with elevated privileges but in that user's context to remove the apps.

    3. Some apps can only be removed after the user has created a profile on a machine (the apps aren't part of the install image, they actually go out to Microsoft's servers and get installed from there) and usually about thirty minutes to an hour after the profile has been created (e.g. Candy Crush Saga and Twitter which don't appear until long after the user's profile has been created).

    4. If you run the script as a logon on script or scheduled task, you need to sleep the script for about an hour because issuing an uninstall command to some of these apps while they're still setting themselves up (on profile creation) can cause them to uninstall incorrectly (usually leaving dead items on the start menu).

     

     

    0

  10. Neenz 2 years ago

    BuyEnterpriseSKU - do you have an alternative method then? To remove all these apps from domain machines upgraded to Windows 10 1511?

    0

  11. Dean Colpitts 2 years ago

    These command puke on all machine W10x64 Enterprise machines, even when running as Administrator.

     

    PS C:\Windows\System32\WindowsPowerShell\v1.0> Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Onlin
    e
    Remove-AppxProvisionedPackage : The process cannot access the file because it is being used by another process.
    At line:1 char:38
    + ... ppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online
    +                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Remove-AppxProvisionedPackage], COMException
        + FullyQualifiedErrorId : Microsoft.Dism.Commands.RemoveAppxProvisionedPackageCommand

    0

  12. CP 2 years ago

    We are also looking to remove Candy Crush, Twitter, Flipboard, etc but they never appear in the provisioned apps.

    I have them on my start menu now, but these are my only provisioned apps listed:

    PackageName
    -----------
    Microsoft.3DBuilder_10.9.50.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Appconnector_2015.707.550.0_neutral_~_8wekyb3d8bbwe
    Microsoft.BingFinance_4.6.169.0_neutral_~_8wekyb3d8bbwe
    Microsoft.BingNews_4.6.169.0_neutral_~_8wekyb3d8bbwe
    Microsoft.BingSports_4.6.169.0_neutral_~_8wekyb3d8bbwe
    Microsoft.BingWeather_4.6.169.0_neutral_~_8wekyb3d8bbwe
    Microsoft.CommsPhone_1.10.15000.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ConnectivityStore_1.1509.1.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Getstarted_2.3.7.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Messaging_1.10.22012.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftSolitaireCollection_3.3.9211.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Office.Sway_2015.6216.20251.0_neutral_~_8wekyb3d8bbwe
    Microsoft.People_2015.1012.106.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Windows.Photos_2015.1001.17200.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_2015.1012.20.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_2015.1009.20.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCamera_2015.1071.40.0_neutral_~_8wekyb3d8bbwe
    microsoft.windowscommunicationsapps_2015.6308.42271.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsMaps_4.1509.50911.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsPhone_2015.1009.10.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_2015.1012.110.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsStore_2015.1013.14.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneMusic_2019.6.13251.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneVideo_2019.6.13251.0_neutral_~_8wekyb3d8bbwe

    0

  13. Cory Ulrich 2 years ago

    For anyone looking to prevent certain apps from installing for new users use this in a powershell admin console or script with admin rights (You can add or remove apps as you please. I intentionally left out the calculator and photo viewer. You may want to keep the store. I didn't):

    $Applist = Get-AppXProvisionedPackage -online

    $Applist | WHere-Object {$_.packagename -like "*3DBuilder*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*Appconnector*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*BingFinance*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*BingNews*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*BingSports*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*BingWeather*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*CommsPhone*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*ConnectivityStore*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*Getstarted*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*Messaging*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*MicrosoftOfficeHub*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*MicrosoftSolitaireCollection*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*OneNote*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*Sway*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*People*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*SkypeApp*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsAlarms*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsCamera*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*windowscommunicationsapps*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsMaps*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsPhone*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsSoundRecorder*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*WindowsStore*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*XboxApp*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*ZuneMusic*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*ZuneVideo*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*xbox*"} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like "*contact support*"} | Remove-AppxProvisionedPackage -online

    1+

  14. Rick 2 years ago

    How do you also get rid of Amazon and Travelocity showing up on the Task Bar?  After running the script the Provisioned apps do not appear for new users, but Amazon and Travelocity still appear on the Task Bar (they are not in the Apps menu).

    Thanks

    0

  15. William 1 year ago

    Easiest way I found to solve this issue was to right click the tile on the start menu and uninstall the app. None of the 4 that were causing the error were listed when I used the provided script. So, I found the tiles on the menu, right clicked and uninstalled, ran sysprep again and no error.

    0

  16. Anil 1 year ago

    Hi everyone,

    nobody issue solved ? Sysrep later , all apps come back or new user login all apps comeback ? Thank u so much your help

    0

  17. Joel 1 year ago

    Hello Everyone,

    Is there a script to uninstall the provisioned Apps (or just apps) remotely via powershell?

    We do not have VL so we are doing in-place upgrades to our windows 7 machines so we cannot create an image, we would like to run a script remotely to computers we upgrade from Windows 7 to Windows 10.

     

    Thanks for any help

    1+

    • Author

      I explained how to uninstall Windows 10 apps with PowerShell here. Theoretically, you can also do this remotely via PowerShell Remoting, but I never tried that.

      0

  18. Shawn Alvarado 1 year ago

    Having Issues with Corey Ulrich's script.  Logged in as admin getting this error "Get-AppXProvisionedPackage : An attempt was made to load a program with an incorrect
    format.
    At \\svc1\TechwareShare\RHS\delappwin10.ps1:1 char:12
    + $Applist = Get-AppXProvisionedPackage -online
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AppxProvisionedPackage], COMExc
    eption
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageComma
    nd
    "

    0

  19. Mr Edwards 12 months ago

    I have installed Windows 10, 1607 and I have a different issue.  I have removed specific Windows apps, customized a user profile, used the copyprofile=true feature in sysprep.  The profile is normal (most everything appears as it was configured) but applications that I did *not* uninstall have been removed from the default user profile.  How can I ensure all remaining applications are available to the default user?

    0

    • Author
      Michael Pietroforte 12 months ago

      I don't think a customized user profile will help you here. Whenever a new user account logs on, Windows will install the provisioned apps. So what you have to do is to unprovision the apps that you don't need. Modern apps work totally different than desktop apps. All the old techniques no longer apply.

      0

  20. Arthur Banks 11 months ago

    Just a note, DO NOT remove calculator app if this is going to normal users.

    No way of getting it back without spending hours.

    That was first complaint i had when i deployed Win 10.

    1+

    • Author
      Michael Pietroforte 11 months ago

      I would rather deploy a desktop-based calculator than trying to get the built-in calculator back. You are right, once you removed built-in apps things get complicated when you want them back.

      0

      • Sudhakar 4 months ago

        Do you have any recommendations or ideas that I could give a try?

        0

  21. Mr Edwards 11 months ago

    What is odd is that the apps were present under the custom (logged in) user but once I initiate a sysprep they are removed from the logged in user, which is the user I setup for the customized profile.  When I log in after the machine returns from the sysprep, the items are still present ( e.g. start menu) but are no longer functional.  If you right-click, you are given the option to uninstall the app so it would seem the application is still present but somehow deactivated.  This of course carries over to the next user because it is the profile used to create the customized profile.  Also (as a test) I decided to not uninstall any applications and they were still not functional after sysprep.  Any ideas would be greatly appreciated.

    0

    • Author
      Michael Pietroforte 11 months ago

      This is not really odd. This is what you have to expect when you deal with Modern apps. You have to distinguish between provisioned and installed apps. Provisioned apps will be installed for new users when they logon the first time. If you remove a provisioned app that has been previously installed for your default user, you are in trouble. The links are still in the Start menu, but Windows can't install the app because you unprovisioned it.

      You also have to distinguish between uninstalling an app and unprovisioning an app. These are completely different things. When you prepare an image, you don't uninstall the apps that you don't need, you have to unprovision them.

      Best thing is to forget about default user profiles when you deal with Modern apps. You have to start with a clean system where no user has logged on. You login with your admin account and unprovision the apps you don't want to deploy. Next you sysprep the machine and then you deploy the image. There is no need to mess with a default user profile.

      0

  22. Mr Edwards 11 months ago

    I will do my best to find another way to accomplish my goal, which is to ensure that all users have exactly the same corporate configuration (apps, desktop setup, start menu layout, scheme, background, lock screen, IE configuration, etc.)  I removed  the undesirable applications utilizing  "Remove-AppxProvisionedPackage -online" or "Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -Verbose" so I apologize for using the wrong terms.  When I said uninstall, I meant unprovision.

    I am setting up a controlled environment and MS has decided that I cant launch certain applications under the administrator profile, limiting my ability to create a very precise configuration, just once, so the alternative is to create an alternate profile, lets call it "ReferenceProfile".  Once I login as ReferenceProfile and configure it exactly as I desire, I sysprep the machine, ensuring that I use the copyprofile=true feature is part of the unattended.xml in sysprep.  I seal the configuration using "sysprep.exe /generalize /oobe /shutdown /unattend:C:\Windows\System32\sysprep\unattend-x64.xml" Upon restart I am finding the new users have the same desired configuration, however applications that I didn't removed are no longer available, possibly unprovisioned (possibly during the cleanup phase) and even if I don't unprovision any applications, there are applications that are no long functional after the sysprep.  Additionally, the ReferenceProfile that was created is also being applies to the administrator profile, after sysprep, even though the account already existed.  The end goal is really to ensure all user are configured with the corporate image and I am finding a challenge with Windows 10.

    0

    • Author
      Michael Pietroforte 11 months ago

      If apps somehow disappear, you most likely made a mistake at the same point. It appears to me that you follow the wrong strategy. First of all, you should not launch any apps before you sysprep the machine. Second, you certainly should not try to configure a default user profile with the administrator account.

      Actually, as mentioned before, you should avoid messing with the default user profile. Creating a standard environment for users is a common task. However, it is much better to do this after you deploy the image to your target machines. The common way is to work with Group Policy and Group Policy Preference. This is more reliable, easier to configure and it allows you to change your configuration any time. For instance, we have described how to deploy a standard Start menu with Group Policy here and here.

      Best practice is to install a fresh Windows, log on with a local amin account, install all updates, unprovision the unwanted Modern apps (don't launch any apps, don't touch the default user profile), run sysprep. After your target machines are up and running with this clean image, you deploy your desktop applications and create a standard environment with Group Policy.

      I still remember that I was an avid fan of your strategy when I started cloning Windows. These were the times when everyone was still working with unattended installations and Microsoft explicitly warned admins to deploy OS images. Well, I did it anyway and it worked great. We installed all the software, configured the machines to the last detail and were able to deploy hundreds of Windows machine in a fraction of the usual time. Years later Microsoft gave in and adopted the method and released the sysprep tool. However, this were the times of Windows NT 4 and Group Policy didn't exist yet (only system policies). Things have changed a lot since those times. Nowadays you can configure everything remotely and configuring a standard environment before you deploy the image doesn't make sense anymore.

      0

  23. Arthur Banks 11 months ago

    Anyone else getting Windows 10 stuck on first logon?

    After i prepared my system and captured WIM to SCCM 2012, at first logon it just sits on "Preparing Windows".

    I can log off and log back in which works instantly.

    Then same issue re-occurs intermittently to random users on the machine but only on first logon.

    0

  24. Mr Edwards 11 months ago

    Based on the expertise provided, I was able to create a base image, having only the applications that I desired.  Well, that's not perfectly true.  There were a few that I wanted to keep, however I found that if I unprovisioned those few, I no longer had the issue of mysteriously disappearing applications.  I am still using the same strategy for creating a customized profile which can be found here

    https://msdn.microsoft.com/en-us/windows/hardware/commercialize/manufacture/desktop/customize-the-default-user-profile-by-using-copyprofile

    because I found that over the years, it has given me consistent results and makes it possible to create and identical and controlled user experience.  I am utilizing group policy and also teasing out what other ideas that you've provide that I may incorporate.

    A HUGE thank you to Michael for the wisdom provided and to everyone else who provided input to the issue that I was having.

    0

  25. Mr Edwards 11 months ago

    >Anyone else getting Windows 10 stuck on first logon?

    Earlier this year there was one or more Microsoft update that made it appear the patch application process was stuck.  While what we experienced was not specifically the problem you described, I wonder if it is related.  Users were waiting indefinitely for updates to apply.  We found that if you just did a CTRL-ALT-DEL and nothing else, the logon screen would just appear and users would be able to login.  Once that update had completed, the problem never returned.

    0

  26. John Philipson 10 months ago

    Hi, Thanks very much for all the detailed information here. Despite trying all the various command shown here and ones recommended in other forums (like the one shown below),

    Get-AppxPackage -AllUsers | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
    Get-appxprovisionedpackage –online | where-object {$_.packagename –notlike “*store*”} | Remove-AppxProvisionedPackage -online

    which is very powerful and removes all apps (except Windows store), including Provisioned ones) for ALL users, I still cannot get passed the Sysprep process of MDT.

    I have managed to capture an earlier revision of my Gold Image  but whatever I try now I get the same error

    SYSPRP Failed to remove apps for the current user: 0x80073cf2.

    SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

    When I run the command below

    Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation.

    I can see that there are still a great many applications are still showing as installed but they appear to uninstallable ??

    I have even tried deleting the local accounts associated with the apps but still no joy

    PS C:\windows\system32> Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation
    PackageFullName : Microsoft.MicrosoftEdge_38.14393.0.0_neutral__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-4268636132-2605224068-2860058039-500 [Admin-JG]: Installed, S-1-5-21-1106070979-359232129-1136263860-9524
    [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed, S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1003 [Admin-BKP]: Installed}

    PackageFullName : Microsoft.NET.Native.Runtime.1.3_1.3.23901.0_x86__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed, S-1-5-21-4268636132-2605224068-2860058039-1003 [Admin-BKP]: Installed}

    PackageFullName : Microsoft.NET.Native.Runtime.1.3_1.3.23901.0_x64__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed, S-1-5-21-4268636132-2605224068-2860058039-1003 [Admin-BKP]: Installed}

    PackageFullName : Microsoft.NET.Native.Framework.1.3_1.3.23901.0_x86__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    PackageFullName : Microsoft.NET.Native.Framework.1.3_1.3.23901.0_x64__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    PackageFullName : Microsoft.VCLibs.140.00_14.0.23816.0_x86__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    PackageFullName : Microsoft.VCLibs.140.00_14.0.23816.0_x64__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    PackageFullName : Microsoft.Advertising.Xaml_10.0.1605.0_x64__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    PackageFullName : Microsoft.Advertising.Xaml_10.0.1605.0_x86__8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-1106070979-359232129-1136263860-9524 [S-1-5-21-1106070979-359232129-1136263860-9524]: Installed,
    S-1-5-21-4268636132-2605224068-2860058039-1002 [User-bkp]: Installed}

    0

    • Author
      Michael Pietroforte 10 months ago

      It appears that one of the apps was installed for a user account before you removed the provisioned apps. This always causes trouble. When you start building a new image, the first thing you have to to do is remove the provisioned apps that you don't need and then you can continue with your configuration.

      Did you try removing the user account that installed the apps?

      0

  27. John Philipson 10 months ago

    Thanks very much Michael, Yes I tried deleting the two manually created accounts (as well as the profiles) but no joy.

    Which entry are you referring to that shows that situation, please ?

    0

  28. Metoo 8 months ago

    Still no answer how to get rid of candy crush, Facebook, twitter and all other crap that gets installed when a NEW user logs in... No they are NOT in provisionedapps. What a mess MS creates for businesses.

    1+

  29. Shamster 6 months ago

    Hi Michael,

    I'm getting the infamous : "SYSPRP Package Windows.ContactSupport_10.0.15063.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users.".

    What I did was removing ContactSupport app, but apparently it left installed on one, later deleted account. So, when I list apps with:

    Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation > c:\list.txt

    I can see that ContactSupport is still listed there next to the SID of non-existent account.
    Is there a way of fixing this and making Sysprep getting through, without a need of preparing the reference image again?

    0

    • Author
      Michael Pietroforte 6 months ago

      Did you also delete the user profile (Control Panel > System > Advanced system settings > Advanced > User Profiles)?

      0

  30. Shamster 6 months ago

    Yes, I did.

    I also tried to look for registry some entries relating to Windows.ContactSupport with account's SID - no joy.

    0

  31. Shamster 6 months ago

    I should probably mention that provisioning's been removed already too (Remove-AppxProvisionedPackage -Online -PackageName Windows.ContactSupport_10.0.15063.0_neutral_neutral_cw5n1h2txyewy) and nothing left in C:\program files\windowsapps

    0

  32. Shamster 6 months ago

    "Sysprep was not able to validate your Windows installation. Review the log file at ...setupact.log for details"
    Message quoted above comes from the log file.

    I don't know where "Get-AppxPackage -AllUser" takes the info from, most likely same place Sysprep takes it from, but doesn't look like it's the registry - couldn't find anything relevant there.

    I've tried so many things already, that I started thinking about re-provisioning Windows.ContactSupport app for current profile now. I just don't know how, since I've deleted it already from everywhere, in search for a solution (that's what everybody tells you to do first).

    0

  33. Author
    Michael Pietroforte 6 months ago

    Maybe it is not the app that causes the problem. The most common reason why sysprep fails with this error message is because you are trying to sysprep an upgraded system. I had this problem on a Windows 10 machine that I "upgraded" with the Anniversary Update. Maybe you try this.

    0

  34. Shamster 6 months ago

    It's a clean install from freshly downloaded ISO, so I don't even have that entry in my registry.

    I found several threads from people having same issue in the internet (including MS forums) - no solution.

    The case is - I removed several apps, thought I'm fine, so created test account, to make sure they do not re-install in freshly created accounts. Deleted test account and then decided to remove one more app (ContactSupport, visible as 'Get Help' in Start Menu). I ended up like this.

    I've spent sooo much time on tweaking this install (to be reference image for deployments) that last thing I want to do is reinstall and re-applying all tweaks.

     

    0

  35. Shamster 6 months ago

    You're probably right.

    BTW. I've plenty snapshots, but forgot to take one right before this one particular step ... stupid, oh stupid me.

    0

  36. Slava 6 months ago

    I tried to completely remove WindowsCalculator using Remove-AppxPackage/Remove-AppXProvisionedPackage. Get-AppxPackage and Get-AppxProvisionedPackage report that there is no this package anymore. However I still see *microsoft-windows-calc* in WinSxS, CALC.EXE-*.pf in Prefetch and calc.exe in System32. It doesn't run, Windows reports an error, but how to get rid of these files? Can I just delete them? I don't feel comfortable deleting files from WinSxS and Prefetch.

    0

    • Author
      Michael Pietroforte 6 months ago

      I wouldn't manually delete files in the Windows folder. You never know if the file is needed by a fancy process. There are countless of files on a Windows system that you probably will never need. I am afraid we have to live with that.

      0

  37. Slava 6 months ago

    I deleted them and then installed Windows 7 calc along with MUI and WinSxS files and registry entries for it.

    0

  38. James H 6 months ago

    I tried Cory's script that he left in the comments and it worked to get over half of the apps removed but these remain:

    PackageName
    -----------
    Microsoft.DesktopAppInstaller_1.1.25002.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Microsoft3DViewer_1.1702.21039.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_1.4.101.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MSPaint_1.1702.28017.0_neutral_~_8wekyb3d8bbwe
    Microsoft.OneConnect_2.1701.277.0_neutral_~_8wekyb3d8bbwe
    Microsoft.SkypeApp_11.8.204.0_neutral_~_kzf8qxf38zg5c
    Microsoft.StorePurchaseApp_1.0.454.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Wallet_1.0.16328.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Windows.Photos_2016.511.9510.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_2017.203.236.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_2017.131.1904.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCamera_2017.125.40.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsFeedbackHub_1.1612.10312.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_2017.130.1208.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsStore_11701.1001.874.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxGameOverlay_1.15.2003.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_2016.719.1035.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_1.14.2002.0_neutral_~_8wekyb3d8bbwe

    I'd really like to get the Windows Store and Xbox entries out - but these always fail.

    Any other alternatives?

     

    0

  39. Shamster 6 months ago
  40. Tim 4 months ago

    I have updated Matthew's original script for build Windows Pro 10 Build 1703 (as of 7/13/2017 that is the current version.

    Copy and paste this into your PowerShell ISE (ran as Administrator)

    $AppsList = "Microsoft.XboxIdentityProvider","Microsoft.Wallet","9E2F88E3.Twitter","A278AB0D.MarchofEmpires","flaregamesGmbH.RoyalRevolt2","king.com.CandyCrushSodaSaga","Microsoft.OneConnect","Microsoft.Microsoft3DViewer","Microsoft.WindowsFeedbackHub","Microsoft.XboxGameOverlay","Microsoft.XboxSpeechToTextOverlay","Windows.ContactSupport","Microsoft.Office.Onenote","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingWeather","Microsoft.XboxApp","Microsoft.SkypeApp","Microsoft.MicrosoftSolitaireCollection","Microsoft.BingSports","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Windows.Photos","Microsoft.People","Microsoft.MicrosoftOfficeHub","Microsoft.WindowsMaps","microsoft.windowscommunicationsapps","Microsoft.Getstarted","Microsoft.3DBuilder"

    ForEach ($App in $AppsList)
    {
    $PackageFullName = (Get-AppxPackage $App).PackageFullName
    $ProPackageFullName = (Get-AppxProvisionedPackage -online | where {$_.Displayname -eq $App}).PackageName
    write-host $PackageFullName
    Write-Host $ProPackageFullName
    if ($PackageFullName)
    {
    Write-Host "Removing Package: $App"
    remove-AppxPackage -package $PackageFullName
    }
    else
    {
    Write-Host "Unable to find package: $App"
    }
    if ($ProPackageFullName)
    {
    Write-Host "Removing Provisioned Package: $ProPackageFullName"
    Remove-AppxProvisionedPackage -online -packagename $ProPackageFullName
    }
    else
    {
    Write-Host "Unable to find provisioned package: $App"
    }

    }

    0

  41. sudhakar 4 months ago

    Hi All,

    Do you know I had removed all provisioned packages using remove command, now I want to get them back. Is there a way to get them back?

    0

    • Author
      Michael Pietroforte 4 months ago

      As far I know there is no officially supported way to bring back removed provisioned apps.

      0

  42. PaulaJava 2 months ago

    This is the best one yet! I took out all the apps. And so much more simple that most scripts I have come across.

    How do I apply this to a mounted image?

    0

  43. PaulaJava 2 months ago

    This ran perfectly for me. Now how do I get Windows calculator back? It's the only one I want to keep.

    0

    • Author
      Michael Pietroforte 2 months ago

      Maybe it worked too well then. As far as I know there is no way to restore an unprovisioned app.

      0

  44. Paula Vivian White 2 months ago

    OK. Is there a way to run this and make calculator an exception?

    1+

  45. Jonathan 2 weeks ago

    Moving between the 1507-1703 branches each Feature upgrade would reinstall the Appx Applications that you previously removed. I have a solution:

    http://www.systemcenterblog.co.uk/2017/11/windows-10-feature-upgrade-without.html

    0

Leave a reply

Your email address will not be published. Required fields are marked *

*

CONTACT US

Please ask IT administration questions in the forum. Any other messages are welcome.

Sending
© 4sysops 2006 - 2017

Log in with your credentials

or    

Forgot your details?

Create Account