Skip to content

Instantly share code, notes, and snippets.

Created December 31, 2017 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c4240bebb1108a3739bb83a26e97daa6 to your computer and use it in GitHub Desktop.
Save anonymous/c4240bebb1108a3739bb83a26e97daa6 to your computer and use it in GitHub Desktop.
get msi id from installed software
PS C:\WINDOWS\system32> Get-ChildItem HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\*\Products | ForEach-Object {
>> $root = $_.PsPath
>> $_.GetSubKeyNames() | ForEach-Object {
>> try {
>> $RegKeyPath = (Join-Path -Path (Join-Path -Path $root -ChildPath $_) -ChildPath InstallProperties)
>> $obj = Get-ItemProperty -Path $RegKeyPath -ErrorAction Stop
>> if ($obj.UninstallString) {
>> [PSCustomObject]@{
>> Path = $RegKeyPath;
>> Name = $obj.DisplayName ;
>> Vendor = $obj.Publisher ;
>> Version = $obj.DisplayVersion ;
>> IdentifyingNumber = ($obj.UninstallString -replace "msiexec\.exe\s/[IX]{1}","")
>> }
>> }
>> } catch {
>> }
>> }
>> } | Select -Property $properties | select IdentifyingNumber,Name,Version
IdentifyingNumber Name Version
----------------- ---- -------
{B0037450-526D-3448-A370-CACBD87769A0} Microsoft Visual C++ 2017 x64 Minimum Runtime - 14.11.25325 14.11.25325
{B13B3E11-1555-353F-A63A-8933EE104FBD} Microsoft Visual C++ 2017 x64 Additional Runtime - 14.11.25325 14.11.25325
{1D8E6291-B0D5-35EC-8441-6616F567A0F7} Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 10.0.40219
{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219 10.0.40219
{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E} Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.21005 12.0.21005
{F8CFEB22-A2E7-3971-9EDA-4B11EDEFC185} Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.21005 12.0.21005
{11087D24-567D-7D88-69C6-D7A08B5F4C47} Catalyst Control Center - Branding 1.00.0000
{0339C035-CB0E-4AA1-8A94-6C306982BD86} KB4023057 2.1.0.0
{11A88BD5-F059-4743-81D9-1432AC9C3D4E} Oracle VM VirtualBox 5.1.26 5.1.26
{929FBD26-9020-399B-9A7A-751D61F0B942} Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.21005 12.0.21005
{A749D8E6-B613-3BE3-8F5F-045C84EBA29B} Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.21005 12.0.21005
{37B8F9C7-03FB-3253-8781-2517C99D7C00} Microsoft Visual C++ 2012 x64 Additional Runtime - 11.0.61030 11.0.61030
{029DA848-1A80-34D3-BFC1-A6447BFC8E7F} Microsoft Visual C++ 2017 x86 Minimum Runtime - 14.11.25325 14.11.25325
{54CE68A8-4F2D-4328-B1F7-D6C720405F7F} HP 3D DriveGuard 4.2.9.1
{5442DAB8-7177-49E1-8B22-09A049EA5996} Renesas Electronics USB 3.0 Host Controller Driver 2.1.36.0
{60EC980A-BDA2-4CB6-A427-B07A5498B4CA} Google Update Helper 1.3.33.7
{3B7E914A-93D5-4A29-92BB-AF8C3F66C431} Skype™ 7.40 7.40.151
{B455E95A-B804-439F-B533-336B1635AE97} NVIDIA PhysX 9.14.0702
{3369F76A-F628-300A-8CC7-53CF96F12C56} Google Chrome 63.0.3239.84
{B175520C-86A2-35A7-8619-86DC379688B9} Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 11.0.61030
{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97} Microsoft Visual C++ 2012 x64 Minimum Runtime - 11.0.61030 11.0.61030
{BD95A8CD-1D9F-35AD-981A-3E7925026EBB} Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 11.0.61030
{568CD07E-0824-3EEB-AEC1-8FD51F3C85CF} Microsoft Visual C++ 2017 x86 Additional Runtime - 14.11.25325 14.11.25325
{4E67FF7F-C24E-4279-9AB2-C26D57B53742} UpdateAssistant 1.3.0.0
{EB96DF8B-65A7-4E72-BFB1-38DB36870D16} Skype Web Plugin 7.32.6.278
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment