完整显示结果

Select <String> -ExpandProperty <String>

Get-Package | select Name -ExpandProperty Name
Everything 1.4.1.1009 (x64)
XMind 12.0.3
火绒安全软件
Microsoft Office Professional Plus 2013
Microsoft Office Professional Plus 2013
TeamViewer
Microsoft DCF MUI (Chinese (Simplified)) 2013
Microsoft OneNote MUI (Chinese (Simplified)) 2013
WinRAR 5.71 (64 位)

(Cmdlet).<String>

(Get-Package).name
Everything 1.4.1.1009 (x64)
XMind 12.0.3
火绒安全软件
Microsoft Office Professional Plus 2013
Microsoft Office Professional Plus 2013
TeamViewer
WinRAR 5.71 (64 位)

换行显示结果

Format-Table -Wrap

Get-Package | ft -Wrap

Name                           Version          Source                           ProviderName
----                           -------          ------                           ------------
Everything 1.4.1.1009 (x64)    1.4.1.1009                                        Programs
XMind 12.0.3                   12.0.3                                            Programs
火绒安全软件                   5.0                                               Programs
Microsoft Office Professional  15.0.4569.1506                                    Programs
Plus 2013
Microsoft Office Professional  15.0.4569.1506   C:\Program Files\Microsoft Offic msi
Plus 2013                                       e\
TeamViewer                     15.32.3                                           Programs
WinRAR 5.71 (64 位)            5.71.0                                            Programs
Microsoft DCF MUI (Chinese (Si 15.0.4569.1506   C:\Program Files\Microsoft Offic msi
mplified)) 2013                                 e\
Microsoft OneNote MUI (Chinese 15.0.4569.1506   C:\Program Files\Microsoft Offic msi
 (Simplified)) 2013                             e\
Microsoft Office 32-bit Compon 15.0.4569.1506   C:\Program Files\Microsoft Offic msi
ents 2013                                       e\
Microsoft Office Shared 32-bit 15.0.4569.1506   C:\Program Files\Microsoft Offic msi
 MUI (Chinese (Simplified)) 20                  e\
13

配置环境参数

$FormatEnumerationLimit = -1

分类: 系统运维

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。