Use the following command to retrive a list of installed MSI code, this MSI code can be used for example as detection method in SCCM or as uninstall script parameter with the msiexe.exe /X command.
1 |
get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize |