List Windows apps in a specific format in PowerShell

To get a list of all installed apps open an elevated PowerShell window and type:

Get-AppxPackage -AllUsers | Select Name 

This will produce a list of installed apps. Example:

Microsoft.WindowsCalculator NAVER.LINEwin8 4DF9E0F8.Netflix 

I need to get a list that does not display the prefix. Example:

WindowsCalculator LINEwin8 Netflix 

How can I get a list of installed apps without the prefix that precedes the punctuation?

3

1 Answer

Taking your approach literal this will get you the last . separated element from the name, but there will be a lot of entries 0,1,2,3,4,6,00,xaml from apps with appended version information and xaml type:

Get-AppxPackage -AllUsers | Select -Expand Name|%{"{0,-40} {1}" -f $_.split(".")[-1],$_} 

Sample output:

BrokerPlugin Microsoft.AAD.BrokerPlugin BioEnrollment Microsoft.BioEnrollment LockApp Microsoft.LockApp MicrosoftEdge Microsoft.MicrosoftEdge PPIProjection Microsoft.PPIProjection ChxApp Microsoft.Windows.Apprep.ChxApp AssignedAccessLockApp Microsoft.Windows.AssignedAccessLockApp CloudExperienceHost Microsoft.Windows.CloudExperienceHost ContentDeliveryManager Microsoft.Windows.ContentDeliveryManager Cortana Microsoft.Windows.Cortana ParentalControls Microsoft.Windows.ParentalControls SecondaryTileExperience Microsoft.Windows.SecondaryTileExperience SecureAssessmentBrowser Microsoft.Windows.SecureAssessmentBrowser XboxGameCallableUI Microsoft.XboxGameCallableUI ContactSupport Windows.ContactSupport immersivecontrolpanel windows.immersivecontrolpanel MiracastView Windows.MiracastView PrintDialog Windows.PrintDialog 3 Microsoft.NET.Native.Runtime.1.3 3 Microsoft.NET.Native.Runtime.1.3 3 Microsoft.NET.Native.Framework.1.3 3 Microsoft.NET.Native.Framework.1.3 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like