Dec 122013
 

Here’s a helpful tip, see here for more details.

I was working on a script to remove specific Modern packages from Windows 8.1 and I needed a quick way to see what was installed. “get-appxprovisionedpackage -online” yielded the following useless results.

PS C:\windows\system32> get-appxprovisionedpackage -online

DisplayName  : Microsoft.BingFinance 
Version      : 2013.809.632.3676 
Architecture : neutral 
ResourceId   : ~ 
PackageName  : Microsoft.BingFinance_2013.809.632.3676_neutral_~_8wekyb3d8bbwe

DisplayName  : Microsoft.BingFoodAndDrink 
Version      : 2013.820.258.2561 
Architecture : neutral 
ResourceId   : ~ 
PackageName  : Microsoft.BingFoodAndDrink_2013.820.258.2561_neutral_~_8wekyb3d8bbwe

The list is longer, but you get the idea. Anyway it’s completely useless to me. The solution is to use select-object to pick out the PackageName value from the collection of objects. Simple really, just use a pipe along with the “select-object” cmdlet then specify the name of the value you want.:

PS C:\windows\system32> get-appxprovisionedpackage -online | select-object PackageName

PackageName
-----------
Microsoft.BingFinance_2013.809.632.3676_neutral_~_8wekyb3d8bbwe
Microsoft.BingFoodAndDrink_2013.820.258.2561_neutral_~_8wekyb3d8bbwe
Microsoft.BingHealthAndFitness_2013.813.243.3760_neutral_~_8wekyb3d8bbwe
Microsoft.BingMaps_2013.809.2206.5385_neutral_~_8wekyb3d8bbwe
Microsoft.BingNews_2013.809.636.2800_neutral_~_8wekyb3d8bbwe
Microsoft.BingSports_2013.809.637.2803_neutral_~_8wekyb3d8bbwe
Microsoft.BingTravel_2013.809.639.25_neutral_~_8wekyb3d8bbwe

Ahh. Much better. Now I could take that output and figure out which Modern apps to delete. I will probably start with Bing.

%d bloggers like this: