Skip to content

Instantly share code, notes, and snippets.

@mikequentel
Created April 13, 2017 21:07
Show Gist options
  • Save mikequentel/985877ac131968c5a87394e6c3edd566 to your computer and use it in GitHub Desktop.
Save mikequentel/985877ac131968c5a87394e6c3edd566 to your computer and use it in GitHub Desktop.
  • Examples:
PS C:\Users\jenkins> get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage

IdentifyingNumber                                                            Name                                                                         LocalPackage
-----------------                                                            ----                                                                         ------------
{B862B671-59FD-7457-AFA0-C738FB7ABD60}                                       Windows SDK Intellidocs                                                      C:\Windows\Installer\3641b758.msi
{90120000-0021-0000-0000-0000000FF1CE}                                       Microsoft Office Visual Web Developer 2007                                   C:\Windows\Installer\181667b6.msi
{90120000-0021-0409-0000-0000000FF1CE}                                       Microsoft Office Visual Web Developer MUI (English) 2007                     C:\Windows\Installer\181667af.msi
PS C:\Users\jenkins> get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage
PS C:\Users\jenkins>
PS C:\Users\jenkins>
PS C:\Users\jenkins> get-wmiobject Win32_Product -filter "name like '%Java%'" | select name

name
----
Java 8 Update 91 (64-bit)
Java SE Development Kit 7 Update 80 (64-bit)
Java Auto Updater
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment