完整显示结果

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

您的电子邮箱地址不会被公开。 必填项已用*标注