Skip to main content

Get-InstalledApplication

SYNOPSISโ€‹

Retrieves information about installed applications.

SYNTAXโ€‹

Get-InstalledApplication [[-Name] <String[]>] [-Exact] [-WildCard] [-RegEx] [[-ProductCode] <String>]
[-IncludeUpdatesAndHotfixes] [<CommonParameters>]

DESCRIPTIONโ€‹

Retrieves information about installed applications by querying the registry. You can specify an application name, a product code, or both.

Returns information about application publisher, name & version, product code, uninstall string, install source, location, date, and application architecture.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Get-InstalledApplication -Name 'Adobe Flash'

EXAMPLE 2โ€‹

Get-InstalledApplication -ProductCode '{1AD147D0-BE0E-3D6C-AC11-64F6DC4163F1}'

PARAMETERSโ€‹

-Nameโ€‹

The name of the application to retrieve information for. Performs a contains match on the application display name by default.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Exactโ€‹

Specifies that the named application must be matched using the exact name.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WildCardโ€‹

Specifies that the named application must be matched using a wildcard search.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-RegExโ€‹

Specifies that the named application must be matched using a regular expression search.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProductCodeโ€‹

The product code of the application to retrieve information for.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IncludeUpdatesAndHotfixesโ€‹

Include matches against updates and hotfixes in results.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersโ€‹

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTSโ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

PSObjectโ€‹

Returns a PSObject with information about an installed applicationโ€‹

- Publisherโ€‹

- DisplayNameโ€‹

- DisplayVersionโ€‹

- ProductCodeโ€‹

- UninstallStringโ€‹

- InstallSourceโ€‹

- InstallLocationโ€‹

- InstallDateโ€‹

- Architectureโ€‹

For every detected matching Application the Function puts out a custom Object containing the following Properties:โ€‹

DisplayName, DisplayVersion, InstallDate, Publisher, Is64BitApplication, ProductCode, InstallLocation, UninstallSubkey, UninstallString, InstallSource.โ€‹

NOTESโ€‹

https://psappdeploytoolkit.com