/build/static/layout/Breadcrumb_cap_w.png

Supporting Windows Question


WIn10 apps reinstalling when a domain user logs in after uninstalling it from local admin account

02/19/2018 1410 views
Hello all, I hope you all had a wonderful weekend

Is anyone else running into this issue with a domain joined Win10 machine in which the windows apps are removed via a power shell script on the local admin account but as soon as a domain user logs in, it re-installs the apps.

I decided to test this theory by making some test local machine user accounts and deleted the apps from the admin account. once I signed in to the local machine user accounts, the apps were gone. But as soon as I sign in with a domain account, the apps reinstall on the machine which is causing a major headache.

 I have read on the Microsoft forums that one can disable the win10 apps via a GPO edit so we are looking into that to see if that solves the issue.

one thing I have noticed that when I try to run the Power Shell script to remove the apps as an administrator, it only deals with the apps on the local machine admin account and not the domain user account. 

If anyone has any suggestion or ideas, Ill be more than happy to try them out!
3 Comments   [ + ] Show comments

Comments

  • make sure you are also doing the remove-appxprovisionedpackage -online

    Doing just Remove-Appxpackage will only remove them for the current account.

    Here is my postinstall script:

    $ProvisionedAppPackageNames = @(
    "AdobeSystemsIncorporated.AdobePhotoshopExpress"
    "Microsoft.BingNews"
    "46928bounde.EclipseManager"
    "Microsoft.BingFinance"
    "Microsoft.BingNews"
    "Microsoft.BingSports"
    "Microsoft.BingWeather"
    "Microsoft.MicrosoftOfficeHub"
    "Microsoft.Getstarted"
    "microsoft.windowscommunicationsapps" #Mail, Calendar
    "Microsoft.Office.OneNote"
    "Microsoft.People"
    "Microsoft.SkypeApp"
    "Microsoft.XboxApp"
    "Microsoft.ZuneMusic"
    "Microsoft.ZuneVideo"
    "Microsoft.microsoftsolitairecollection"


    )

    foreach ($ProvisionedAppName in $ProvisionedAppPackageNames) {
    Get-AppxPackage -Name $ProvisionedAppName -AllUsers | Remove-AppxPackage
    Get-AppXProvisionedPackage -Online | where DisplayName -EQ $ProvisionedAppName | Remove-AppxProvisionedPackage -Online
    }
    • allow me to try and run this script again to see if i get the same thing if another domain user signs in
      • I have ran the script mentioned above but it only removes the apps from the local machine admin account and not the domain user accounts.

        Once I have singed in with another user domain account, all of the apps have reinstalled.
      • This content is currently hidden from public view.
        Reason: Removed by member request For more information, visit our FAQ's.
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • that is the same exact script I have used when doing searches and it still re-installs when i sign in with a domain account.

    we are using win10 ENT if that helps at all
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • Make sure DISABLE Consumer features is enabled during the Deployment phase.

    Also you could use GPO to prevent apps from installing.
    • Ill forward this to my higher ups who make GPO and image deployment changes to see if they can apply this to our Win10 image since we PXEBoot our machines to get imaged
      • See:
        https://blogs.technet.microsoft.com/mniehaus/2015/11/23/seeing-extra-apps-turn-them-off/

        This can be disabled at Answer File (unattended.xml) level, this is only for Win10 Enterprise Edition.
    • This content is currently hidden from public view.
      Reason: Removed by member request For more information, visit our FAQ's.
    • This content is currently hidden from public view.
      Reason: Removed by member request For more information, visit our FAQ's.
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.

All Answers

1

There are two steps to this.  You have to run the "Remove-AppxPackage -AllUsers" command and also the "Remove-AppxProvisionedPackage -online" command.  Here are a couple of lines I use to remove a majority of the Windows 10 apps.  It leaves Store, Calculator, Edge, and a few others and gets rid of Xbox and other junk.


  • Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*Store*" -and $_.name -notlike "*Calculator*" -and $_.name -notlike "*Windows.Photos*" -and $_.name -notlike "*SoundRecorder*" -and $_.name -notlike "*Edge*"} | Remove-AppxPackage -erroraction silentlycontinue

  • Get-AppxProvisionedPackage -online | where-object {$_.displayname -notlike "*Store*" -and $_.displayname -notlike "*Calculator*" -and $_.displayname -notlike "*Windows.Photos*" -and $_.displayname -notlike "*SoundRecorder*" -and $_.displayname -notlike "*Edge*"} | Remove-AppxProvisionedPackage -online -erroraction silentlycontinue


This works on Build 1709.

Answered 02/19/2018 by: JordanNolan
8th Degree Black Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ