Skip to main content

Get-InstalledProgram

SYNOPSIS

Displays installed programs on a computer.

SYNTAX

Get-InstalledProgram [[-ComputerName] <String[]>] [[-Property] <String[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Displays a list of installed programs on a local or remote computer by querying the registry.

EXAMPLES

EXAMPLE 1

Get-InstalledProgram
Shows the installed programs on the local computer.

EXAMPLE 2

Get-InstalledProgram -ComputerName COMPUTER1
Shows the installed programs on the remote computer COMPUTER1.

EXAMPLE 3

Get-InstalledProgram -ComputerName COMPUTER1,COMPUTER2
Shows the installed programs on the remote computers COMPUTER1 and COMPUTER2.

EXAMPLE 4

Get-InstalledProgram (gc C:\Temp\computers.txt)
Shows the installed programs on the remote computers listed in the computers.txt file (each computer name on a new line.)

EXAMPLE 5

Get-InstalledProgram COMPUTER1 -Property InstallSource
Shows the installed programs on the remote computer COMPUTER1 and also shows the additional property InstallSource from the registry.

EXAMPLE 6

Get-InstalledProgram COMPUTER1,COMPUTER2 -Property InstallSource,Comments
Shows the installed programs on the remote computers COMPUTER1 and COMPUTER2. Also shows the additional properties InstallSource and Comments from the registry.

PARAMETERS

-ComputerName

Specifies the name of one or more computers.

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, DNSHostName, Computer

Required: False
Position: 1
Default value: $env:COMPUTERNAME
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Property

Will add additional properties to pull from the Uninstall key in the registry.

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

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
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

OUTPUTS

System.Object

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Get-InstalledProgram