インストールされているアプリケーションの一覧を取得する方法について記載しています。
次のコマンドを実行します。
Get-WmiObject Win32_Product
実行結果
IdentifyingNumber : {90160000-008C-0000-0000-0000000FF1CE}
Name : Office 16 Click-to-Run Extensibility Component
Vendor : Microsoft Corporation
Version : 16.0.8625.2139
Caption : Office 16 Click-to-Run Extensibility Component
IdentifyingNumber : {90160000-008C-0411-0000-0000000FF1CE}
Name : Office 16 Click-to-Run Localization Component
Vendor : Microsoft Corporation
Version : 16.0.8625.2139
Caption : Office 16 Click-to-Run Localization Component
IdentifyingNumber : {90160000-00DD-0000-1000-0000000FF1CE}
Name : Office 16 Click-to-Run Extensibility Component 64-bit Registration
Vendor : Microsoft Corporation
Version : 16.0.8625.2139
Caption : Office 16 Click-to-Run Extensibility Component 64-bit Registration
IdentifyingNumber : {90160000-008F-0000-1000-0000000FF1CE}
Name : Office 16 Click-to-Run Licensing Component
Vendor : Microsoft Corporation
Version : 16.0.8625.2139
Caption : Office 16 Click-to-Run Licensing Component
IdentifyingNumber : {AC76BA86-0804-1033-1959-001824245926}
Name : Adobe Refresh Manager
Vendor : Adobe Systems Incorporated
Version : 1.8.0
Caption : Adobe Refresh Manager
IdentifyingNumber : {AC76BA86-7AD7-1041-7B44-AC0F074E4100}
Name : Adobe Acrobat Reader DC - Japanese
Vendor : Adobe Systems Incorporated
Version : 18.009.20050
Caption : Adobe Acrobat Reader DC - Japanese
IdentifyingNumber : {9AC08E99-230B-47e8-9721-4577B7F124EA}
Name :
Vendor :
Version :
Caption :
IdentifyingNumber : {60EC980A-BDA2-4CB6-A427-B07A5498B4CA}
Name : Google Update Helper
Vendor : Google Inc.
Version : 1.3.33.7
Caption : Google Update Helper
一覧として扱いにくいので、次のオプションをパイプして実行します。
Get-WmiObject Win32_Product | sort InstallDate | foreach{$_.name + "," + $_.Vendor + "," + $_.Version + "," + $_.InstallDate}
実行結果
Adobe Refresh Manager,Adobe Systems Incorporated,1.8.0,20171116
Google Update Helper,Google Inc.,1.3.33.7,20171120
Adobe Acrobat Reader DC - Japanese,Adobe Systems Incorporated,18.009.20050,20171130
Office 16 Click-to-Run Extensibility Component,Microsoft Corporation,16.0.8625.2139,20171204
Office 16 Click-to-Run Localization Component,Microsoft Corporation,16.0.8625.2139,20171204
Office 16 Click-to-Run Extensibility Component 64-bit Registration,Microsoft Corporation,16.0.8625.2139,20171204
Office 16 Click-to-Run Licensing Component,Microsoft Corporation,16.0.8625.2139,20171204
カンマ区切りでデータ形式で表示することができました。
ファイルに出力する場合、次のコマンドを実行します。
Get-WmiObject Win32_Product | sort InstallDate | foreach{$_.name + "," + $_.Vendor + "," + $_.Version + "," + $_.InstallDate} | Out-File -encoding Default application.csv