PowerShell/インストール済アプリケーション一覧を取得する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* PowerShellでインストール済アプリケーション一覧を取得す...
PowerShellを使って、マシンにインストール済のアプリケーシ...
#contents
#htmlinsertpcsp(win-top.html,win-sp.html)
* Win32_Product [#be6d5c7f]
Get-WmiObectでWin32_Productクラス内の情報を表示させます。~
Get-WmiObject Win32_Product
&color(red){Win32_Productだけではインストールされたアプリ...
Get-WmiObject Win32_Productだけを実行すると以下のように表...
PS D:\> Get-WmiObject Win32_Product
<省略>
IdentifyingNumber : {8F6D5610-B5D2-4CF3-90ED-584ABC8B946A}
Name : Oracle VM VirtualBox 5.0.14
Vendor : Oracle Corporation
Version : 5.0.14
Caption : Oracle VM VirtualBox 5.0.14
<省略>
見にくいのでSelect-Objectを使ってみます。
PS D:\> Get-WmiObject Win32_Product | Select-Object Name...
Name ...
---- ...
<省略>
Oracle VM VirtualBox 5.0.14 ...
Visual Studio Tools for the Office system 3.0 Runtime ...
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40...
Update for Japanese Microsoft IME Postal Code Dictionary...
Update for Japanese Microsoft IME Trending Words Diction...
Update for Japanese Microsoft IME Standard Dictionary ...
Microsoft Visual Studio 2005 Tools for Office Runtime ...
<省略>
* レジストリから取得する [#cfdf5996]
上記のWin32_Productクラスからはすべてのアプリケーション情...
尚、GUIのインストール済アプリケーション一覧で表示されない...
対象のレジストリは、HKLM, HKCUを対象としています。
Get-ChildItem -Path(
'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
% { Get-ItemProperty $_.PsPath | Select-Object DisplayNa...
実際に実行すると以下のように表示されます。
PS D:\> Get-ChildItem -Path(
>> 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Unin...
>> 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Unin...
>> % { Get-ItemProperty $_.PsPath | Select-Object Displ...
DisplayName ...
----------- ...
Windows ドライバ パッケージ - Broadcom (BtwSerialBus) Sy...
7-Zip 15.12 ...
FFFTP Ver.1.98g2 ...
GIMP 2.8.16 ...
Google Chrome ...
Visual Studio 2005 Tools for Office Second Edition Runti...
Mozilla Firefox 43.0.4 (x86 ja) ...
Mozilla Maintenance Service ...
<省略>
上記の出力結果をCSVに出力したい場合は、以下のようにExport...
出力ファイル名はapps.csvにしています。
Get-ChildItem -Path(
'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
% { Get-ItemProperty $_.PsPath | Select-Object DisplayNa...
Export-Csv -NoTypeInformation -Encoding Default apps.csv
以上、PowerShellでアプリケーション一覧を取得する方法でし...
#htmlinsertpcsp(win-btm.html,win-sp.html)
終了行:
#navi(../)
* PowerShellでインストール済アプリケーション一覧を取得す...
PowerShellを使って、マシンにインストール済のアプリケーシ...
#contents
#htmlinsertpcsp(win-top.html,win-sp.html)
* Win32_Product [#be6d5c7f]
Get-WmiObectでWin32_Productクラス内の情報を表示させます。~
Get-WmiObject Win32_Product
&color(red){Win32_Productだけではインストールされたアプリ...
Get-WmiObject Win32_Productだけを実行すると以下のように表...
PS D:\> Get-WmiObject Win32_Product
<省略>
IdentifyingNumber : {8F6D5610-B5D2-4CF3-90ED-584ABC8B946A}
Name : Oracle VM VirtualBox 5.0.14
Vendor : Oracle Corporation
Version : 5.0.14
Caption : Oracle VM VirtualBox 5.0.14
<省略>
見にくいのでSelect-Objectを使ってみます。
PS D:\> Get-WmiObject Win32_Product | Select-Object Name...
Name ...
---- ...
<省略>
Oracle VM VirtualBox 5.0.14 ...
Visual Studio Tools for the Office system 3.0 Runtime ...
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40...
Update for Japanese Microsoft IME Postal Code Dictionary...
Update for Japanese Microsoft IME Trending Words Diction...
Update for Japanese Microsoft IME Standard Dictionary ...
Microsoft Visual Studio 2005 Tools for Office Runtime ...
<省略>
* レジストリから取得する [#cfdf5996]
上記のWin32_Productクラスからはすべてのアプリケーション情...
尚、GUIのインストール済アプリケーション一覧で表示されない...
対象のレジストリは、HKLM, HKCUを対象としています。
Get-ChildItem -Path(
'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
% { Get-ItemProperty $_.PsPath | Select-Object DisplayNa...
実際に実行すると以下のように表示されます。
PS D:\> Get-ChildItem -Path(
>> 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Unin...
>> 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Unin...
>> % { Get-ItemProperty $_.PsPath | Select-Object Displ...
DisplayName ...
----------- ...
Windows ドライバ パッケージ - Broadcom (BtwSerialBus) Sy...
7-Zip 15.12 ...
FFFTP Ver.1.98g2 ...
GIMP 2.8.16 ...
Google Chrome ...
Visual Studio 2005 Tools for Office Second Edition Runti...
Mozilla Firefox 43.0.4 (x86 ja) ...
Mozilla Maintenance Service ...
<省略>
上記の出力結果をCSVに出力したい場合は、以下のようにExport...
出力ファイル名はapps.csvにしています。
Get-ChildItem -Path(
'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal...
% { Get-ItemProperty $_.PsPath | Select-Object DisplayNa...
Export-Csv -NoTypeInformation -Encoding Default apps.csv
以上、PowerShellでアプリケーション一覧を取得する方法でし...
#htmlinsertpcsp(win-btm.html,win-sp.html)
ページ名: