1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windowsアプリケーションのインストール日を含めた一覧を取得

Posted at

1. はじめに

PCを移行したり,クリーンインストールしたりするときに以前のインストール状態を確認するためには,インストールされているアプリ一覧を取得しておく必要があります.
設定やコントロールパネルなどからみることができますが,内容を保存するためにはスクロールしながら写真を何回も取るなど面倒です.
テキストファイルとして出力する方法を共有します.

2. 結果

以下のような内容が記載されたtxtファイルを出力します.

InstalledAppsWithDate.txt
Name                                                           Version          InstallDate       
----                                                           -------          -----------       
Microsoft Teams Meeting Add-in for Microsoft Office            1.24.28402       2024/11/19 0:00:00
Webex                                                          42.11.0.24187    2022/12/02 0:00:00
Fritzing                                                       1.0.2.0          2024/05/19 0:00:00
Office 16 Click-to-Run Extensibility Component                 16.0.18129.20100 2024/11/01 0:00:00
Office 16 Click-to-Run Localization Component                  16.0.18129.20100 2024/11/01 0:00:00
Office 16 Click-to-Run Licensing Component                     16.0.18129.20158 2024/11/18 0:00:00
NI LabVIEW Runtime Interop 2024 (64-bit)                       24.10.49442      2024/08/14 0:00:00
...

3. コマンド

Get-WmiObject -Class Win32_Product | Select-Object Name, Version, @{Name="InstallDate";Expression={[datetime]::ParseExact($_.InstallDate, 'yyyyMMdd', $null)}} | Out-File "C:\Users\$USERNAME\Desktop\InstalledAppsWithDate.txt"

$USERNAMEの部分を変更してください.
10秒ちょっと待つと先ほどの結果が得られます.

参考文献

[1] Atsushi Nakamura, Zenn, "Powershellでインストールされているアプリケーションとバージョンのリストを取得する",

[2] itoby, FC2ブログ, "PSでインストールされているソフトウェア一覧をtxtに吐き出す。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?