WIn10 apps reinstalling when a domain user logs in after uninstalling it from local admin account
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
Answers (1)
Please log in to answer
Posted by:
JordanNolan
6 years ago
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.
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
} - khoelle 6 years ago
Once I have singed in with another user domain account, all of the apps have reinstalled. - adams071 6 years ago
we are using win10 ENT if that helps at all - adams071 6 years ago
Also you could use GPO to prevent apps from installing. - Channeler 6 years ago
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. - Channeler 6 years ago