![](/img/trans.png)
[英]How to get list of "view installed updates" in "programs and features" in control panel using Powershell?
[英]How to get a comma separated table of installed Windows programs using PowerShell?
我需要以逗號分隔的格式獲取計算機(Windows 10)上已安裝程序的列表,以如下格式顯示程序名稱和版本: Program Name,Version
我試過的
我當前正在使用此Windows PowerShell命令:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Format-Table –AutoSize
這使我得到一個看起來像這樣的表:
我希望它看起來像這樣(表頭格式並不重要):
有沒有一種方法可以格式化將完成此操作的表或另一個將產生類似於第二個表的輸出的PowerShell命令?
嘗試這樣的事情:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | ConvertTo-Csv -NoTypeInformation
另請參見Export-Csv
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.