要获取所有已安装应用程序的列表,请打开提升的 PowerShell 窗口并输入:
Get-AppxPackage -AllUsers | Select Name
这将生成已安装应用程序的列表。例如:
Microsoft.WindowsCalculator
NAVER.LINEwin8
4DF9E0F8.Netflix
我需要获取不显示前缀的列表。示例:
WindowsCalculator
LINEwin8
Netflix
如何获取不带标点符号前缀的已安装应用程序列表?
答案1
按照你的方法字面意思,这将为你提供.
名称中最后一个分离的元素,但是会有很多来自0,1,2,3,4,6,00,xaml
应用程序的条目附加了版本信息和 xaml 类型:
Get-AppxPackage -AllUsers | Select -Expand Name|%{"{0,-40} {1}" -f $_.split(".")[-1],$_}
示例输出:
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