This cmdlet is part of the Vexasoft Cmdlet Library. You can download it now or click here to find out more.

Get-MSIProduct

Synopsis

Gets the installed products on a local or remote computer.

Syntax

  • Get-MSIProduct [-Name] [-ComputerName] [-Credential]
  • Get-MSIProduct [-Vendor] [-ComputerName] [-Credential]
  • Get-MSIProduct [-InstallDate] [-ComputerName] [-Credential]
  • Get-MSIProduct [-PackageName] [-ComputerName] [-Credential]
  • Get-MSIProduct [-CacheName] [-ComputerName] [-Credential]
  • Get-MSIProduct [-InstallID] [-ComputerName] [-Credential]

Description

The Get-MSIProduct cmdlet returns the installed products on a local or remote computer.

Parameters

  • Name Return installed MSIs with the specified product name. Wildcards permitted.
  • Vendor Return installed MSIs from the specified vendor. Wildcards permitted.
  • InstallDate Return MSIs installed on the specified date.
  • PackageName Return the installed product matching the specified MSI. Wildcards permitted.
  • CacheName Return the installed product matching the specified cached MSI. Wildcards permitted.
  • InstallID Return the installed product matching the specified installation ID. Wildcards permitted.
  • ComputerName The computer against which to run the cmdlet. By default this parameter will be populated with the name of the local computer.
  • Credential The credentials under which to run the cmdlet. By default this cmdlet will run as the current user. Using this parameter and the Get-PSCredential cmdlet you can specify an alternate set of credentials under which to execute this command.

Inputs

Get-MSIProduct accepts pipeline input only for the ComputerName parameter and requires that the input object contain a property named either Computer, CN or ComputerName.

Outputs

Get-MSIProduct makes changes directly to Windows and does not output any Powershell objects.

Notes

The Get-MSIProduct cmdlet requires that the Remote Registry and RPC services are started on the computer it is trying to access, that the WMI Windows Installer Provider is installed (it is an optional component in Windows 2003) and that DNS services are available to resolve target host names.

Example 1

This command will return a list of installed products on the local computer:

C:\PS>Get-MSIProduct

Example 2

This command will return a list of installed products on the remote computer PC01:

C:\PS>Get-MSIProduct -Computer PC01

Example 3

This command will return a list of installed products with a name containing the work 'Office' on the remote computer PC01:

C:\PS>Get-MSIProduct -Computer PC01 -Name *Office*