This will be a TL;DR for some, so if that's you move on, and don't waste our time please.
The goal of this is to help people with brand new installs, remove the crap with the first account made, make a second account, change it to administrator, login to that account, and then remove the first account instead of going through the hell of removing this garbage from every account on the system.
Lets start with Win 10 preview, the onenote app which requires you to be logged into a microsoft account unlike others which allow you to sign into the apps separately, even onedrive lets you sign into it separately now. This shows removing it from the provisioned apps that are installed on every new account, and from the user themselves.
Lets start with an elevated powershell.
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> get-appxpackage *onenote*
Name : Microsoft.Office.OneNote
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 17.4201.10091.0
PackageFullName : Microsoft.Office.OneNote_17.4201.10091.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.4201.10091.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.Office.OneNote_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
Dependencies : {Microsoft.VCLibs.140.00_14.0.22929.0_x64__8wekyb3d8bbwe}
PS C:\WINDOWS\system32> Get-appxprovisionedpackage online
-BIG SNIP-
DisplayName : Microsoft.MicrosoftSolitaireCollection
Version : 3.1.6103.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MicrosoftSolitaireCollection_3.1.6103.0_neutral_~_8wekyb3d8bbwe
DisplayName : Microsoft.Office.OneNote
Version : 2015.4201.10091.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.Office.OneNote_2015.4201.10091.0_neutral_~_8wekyb3d8bbwe
DisplayName : Microsoft.People
Version : 2015.707.0.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.People_2015.707.0.0_neutral_~_8wekyb3d8bbwe
-BIG SNIP-
PS C:\WINDOWS\system32> Get-appxprovisionedpackage online | where-object {$_.packagename like *onenote*} | remove-appxprovisionedpackage online
Path :
Online : True
RestartNeeded : False
PS C:\WINDOWS\system32> Get-appxprovisionedpackage online
-BIG SNIP-
DisplayName : Microsoft.MicrosoftSolitaireCollection
Version : 3.1.6103.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.MicrosoftSolitaireCollection_3.1.6103.0_neutral_~_8wekyb3d8bbwe
DisplayName : Microsoft.People
Version : 2015.707.0.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.People_2015.707.0.0_neutral_~_8wekyb3d8bbwe
-BIG SNIP-
PS C:\WINDOWS\system32> get-appxpackage *onenote*
Name : Microsoft.Office.OneNote
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 17.4229.10041.0
PackageFullName : Microsoft.Office.OneNote_17.4229.10041.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.4229.10041.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.Office.OneNote_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
Dependencies : {Microsoft.VCLibs.140.00_14.0.22929.0_x64__8wekyb3d8bbwe}
PS C:\WINDOWS\system32> remove-appxpackage Microsoft.Office.OneNote_17.4229.10041.0_x64__8wekyb3d8bbwe
PS C:\WINDOWS\system32> get-appxpackage *onenote*
PS C:\WINDOWS\system32>
Note how the package name changed, and the really really really long strings. Want to do that for each account on the system? I don't either, but beware you may not be able to reinstall them later, and might even cause problems like Win 10 preview had a hard coded shortcut to onenote on the notifications action center.
So to see a list of the apps installed to your user, and some have names which don't match the app title in the start menu, like money is finance.
get-appxpackage
Then remove them with this command replacing namehere carefully, you could remove more than you intended. Copy, and paste does work in powershell.
Get-appxprovisionedpackage online | where-object {$_.packagename like *namehere*} | remove-appxprovisionedpackage online
Bye bye bing sports!
DisplayName : Microsoft.BingSports
Version : 10004.4.169.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.BingSports_10004.4.169.0_neutral_~_8wekyb3d8bbwe
Get-appxprovisionedpackage online | where-object {$_.packagename like *bingsports*} | remove-appxprovisionedpackage online
Bye bye bing money!
DisplayName : Microsoft.BingFinance
Version : 10004.4.169.0
Architecture : neutral
ResourceId : ~
PackageName : Microsoft.BingFinance_10004.4.169.0_neutral_~_8wekyb3d8bbwe
Get-appxprovisionedpackage online | where-object {$_.packagename like *bingfinance*} | remove-appxprovisionedpackage online
Afterwards when you make that new account your start menu on your new account could look like this instead, and the offending apps are just gone.
[att=1]
You can do damage here, there are more apps than just the few on your start menu. I do not recommend removing all the apps. I hope the right people will find this useful.
--
I distrust those people who know so well what god wants them to do because I notice it always coincides with their own desires- Susan B. Anthony
Yesterday we obeyed kings, and bent our necks before emperors. But today we kneel only to the truth- Kahlil G.
↧