Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, May 5, 2016 6:22 AM | 5 votes
We are upgrading to Windows 10 the computers in the company and we don't want all the useless apps Windows 10 comes with in our corporate environment.
I found this http://answers.microsoft.com/en-us/insider/forum/insider_apps-insider_other/10166-how-do-i-remove-the-un-removable-apps/4b896e54-9bdd-43a2-87b3-6d3bdcb17949
is there a way to adapt it, or any other way to get the policy uninstalled for all users at the startup.
I prefer a computer policy over a user policy and would like to have them removed rather than just hidden.
Thank you in advance
All replies (13)
Friday, May 6, 2016 6:47 AM | 1 vote
Luca,
Once you initialized the User profile, Windows Store app would be added to the user account.
If you would like to not having those apps, you may consider to build an image without those app packages, then deploy it. Or consider take use of Windows 10 Enterprise LTSB version.
For commands to remove all built-in apps for all the user accounts, run the follwoing powershell command:
Get-AppxPackage -allusers | Remove-AppxPackage
You may consider save the above as a PowerShell logon script and deploy it using group policy.
Some more reference:
https://gallery.technet.microsoft.com/Removing-Built-in-apps-65dc387b
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Thursday, May 12, 2016 2:32 AM | 1 vote
Hi Michael,
I tried the following as I don't want to remove the Calculator yet, all these are in a ps1 file and set it as startup script but it does nothing when the computer starts, any idea?
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
Get-AppxPackage *bingfinance* | Remove-AppxPackage
Get-AppxPackage *zunevideo* | Remove-AppxPackage
Get-AppxPackage *bingnews* | Remove-AppxPackage
Get-AppxPackage *onenote* | Remove-AppxPackage
Get-AppxPackage *people* | Remove-AppxPackage
Get-AppxPackage *windowsphone* | Remove-AppxPackage
Get-AppxPackage *photos* | Remove-AppxPackage
Get-AppxPackage *windowsstore* | Remove-AppxPackage
Get-AppxPackage *bingsports* | Remove-AppxPackage
Get-AppxPackage *soundrecorder* | Remove-AppxPackage
Get-AppxPackage *bingweather* | Remove-AppxPackage
Get-AppxPackage *xboxapp* | Remove-AppxPackage
Get-AppxPackage *king.com.CandyCrushSodaSaga* | Remove-AppxPackage
Get-AppxPackage *bingsports* | Remove-AppxPackage
Get-AppxPackage *Office.sway* | Remove-AppxPackage
Get-AppxPackage *Twitter* | Remove-AppxPackage
Get-AppxPackage *Bing* | Remove-AppxPackage
Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage
Get-AppxPackage *Microsoft.BingFinance* | Remove-AppxPackage
Get-AppxPackage *Microsoft.WindowsScan* | Remove-AppxPackage
Get-AppxPackage *Microsoft.Reader* | Remove-AppxPackage
Get-AppxPackage *Microsoft.CommsPhone* | Remove-AppxPackage
Get-AppxPackage *Microsoft.ConnectivityStore* | Remove-AppxPackage
Get-AppxPackage *Microsoft.WindowsReadingList* | Remove-AppxPackage
Thursday, May 12, 2016 8:50 AM | 1 vote
Luca,
Take a try to apply the command as user logon script.
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Thursday, December 15, 2016 8:43 PM | 3 votes
Running it under the user logon script does not work since users are no administrators and thus the script fails since the powershell must be run as administrator for this command to work.
Any other thoughts or anyone else figure this out? Trying to do the same for our organization.
Wednesday, April 19, 2017 11:17 PM | 2 votes
were you able to solve this. i am running into the same thing.
Thursday, May 11, 2017 3:38 PM | 1 vote
I'm also looking for a solution to this issue.
Thursday, July 13, 2017 8:42 PM | 1 vote
I am also having this issue.
We've already deployed 25,000 machines. During OSD there are a couple apps we forgot to remove (Solitaire and OfficeHub). So I need to way to remediate 20,000+ computers.
Group Policy would be ideal.
I have a script that works FANTASTIC when logged in as the local user and run from an elevated powershell session.
However, the Powershell script login GPO doesn't work, or only works 1/4 of the time.
Thursday, September 7, 2017 10:30 AM
I have same problem,
Please can you send your script?
Thank you
Jeremy HEBERT
Tuesday, September 12, 2017 5:35 PM
Hi,
i have the same prob. going mad. Could you please send me the script too. PLEASE
Tuesday, February 6, 2018 2:08 PM
you are half way there. Get-AppxPackage | Select Name, PackageFullName this is the first part. then once you determine the list of one you want gone you would run the remove command like you did. ****
Get-AppxPackage -allusers *PackageFullName* | Remove-AppxPackage
then you should run:
Get-AppxProvisionedPackage –online | Select PackageName
this will return all of the provisioned apps. determine the list of provisioned apps you want gone and then run the following command to remove each one.
then you should run
Remove-AppxProvisionedPackage –online –PackageName <PackageName> <this is where you paste the package name in to the code.>
Friday, April 13, 2018 10:35 AM
I have exactly the same problem. As soon as i have it in the GPO as a Startup, it works only partially. Have you found any solution?
Wednesday, August 1, 2018 9:19 AM
Any solutions yet?
Thursday, May 16, 2019 4:29 PM
The Solution is simple: you are trying to do something, that just doesn't work.
Powershell is not batch so you can't just run commands at startup - for more than one reason. If it would work from a GPO, MS would most likely have a Adm/admx template for this task available. You can run a Powershell to get rid of the provisioning package, having the APP removed for all new Users.
The Powershell commands (e.g. Money-App):
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -Like "Microsoft.BingFinance"} | ForEach-Object { Remove-AppxProvisionedPackage -Online -PackageName $_.PackageName}
--> This will remove the APPX Package, so no user will get Money any more. If you want to uninstall Money for a user who already has Money (existing user profile on that maschine) you need to run the following powershell aswell:
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
You could try to workaround: What you need to do is have a script run at startup (.bat) and pause execution long enough for the OS to be fully loaded and than have the script run the powershell command.
e.g: timeout /t 300 /nobreak (batch will pause for 300 seconds even if a key is pressed.
Then just run the powershell:
powershell.exe -command "& {Set-ExecutionPolicy -ExecutionPolicy bypass -Force}"
PowerShell.exe -Command "& '%~dpn0.ps1'" (this will run .ps1 file in the same location as the bat-file)