PowerShell:Get-Package 输出全名

PowerShell:Get-Package 输出全名

当我使用时Get-Package我得到了这个列表。

Name                           Version          Source                           ProviderName                                                                                                                                   
----                           -------          ------                           ------------                                                                                                                                   
Intel(R) Wireless Manageabi... 1.0.0.0                                           msi                                                                                                                                            
Microsoft Visual C++ 2017 x... 14.11.25325                                       msi                                                                                                                                            
Microsoft VC++ redistributa... 12.0.0.0                                          msi                                                                                                                                            
Intel(R) Management Engine ... 1.0.0.0                                           msi                                                                                                                                            
Intel(R) Management Engine ... 1914.12.0.1255                                    Programs                                                                                                                                       
Microsoft Visual C++ 2017 x... 14.11.25325                                       msi                                                                                                                                            
DcuMSMWrap                     5.0.3            C:\Program Files (x86)\Dell\U... msi                                                                                                                                            
Dell Command | Update for W... 3.1.0            C:\Program Files\Dell\Command... msi                                                                                                                                            
Intel® Optane™ Pinning Expl... 17.5.3.1026                                       msi                                                                                                                                            
7-Zip 19.00 (x64)              19.00                                             Programs                                                                                                                                       
Mozilla Firefox 76.0.1 (x64... 76.0.1                                            Programs                                                                                                                                       
Dell SupportAssist             3.5.0.448        C:\Program Files\Dell\Support... msi                                                                                                                                            
Dell SupportAssist             3.5.0.448                                         Programs                                                                                                                                       
Dell Data Vault (64 bit)       5.2.11.111                                        msi                                                                                                                                            
Intel(R) Trusted Connect Se... 1.52.230.1                                        msi                                                                                                                                            
Intel(R) Trusted Connect Se... 1.52.230.1                                        msi                                                                                                                                            
Adobe Acrobat Reader DC - D... 20.9.20063       C:\Program Files (x86)\Adobe\... msi                                                                                                                                            
Mozilla Maintenance Service    76.0.1                                            Programs                                                                                                                                       
...
..
.

太长的字符串会被缩短。我想获取完整的字符串,但似乎没有标志可以这样做。我如何才能检索已安装软件包的完整长度字符串?

或者我还能如何获取包的表示以通过 PowerShell 将其卸载?

答案1

可能的答案来自堆栈溢出

Get-Package | ft -AutoSize

至少在 Windows 10 中,它可以清楚地显示列

相关内容