< Back
Get-CProgramInstallInfo
Post
NAME Get-CProgramInstallInfo
SYNOPSIS
Gets information about the programs installed on the computer.
SYNTAX
Get-CProgramInstallInfo [[-Name] <String>] [<CommonParameters>]
DESCRIPTION
The `Get-CProgramInstallInfo` function is the PowerShell equivalent of the Programs and Features UI in the Control
Panel. It inspects the registry to determine what programs are installed. It will return programs installed for
*all* users, not just the current user.
`Get-CProgramInstallInfo` tries its best to get accurate data. The following properties either isn't stored
consistently, is in strange formats, can't be parsed, etc.
* The `ProductCode` property is set to `[Guid]::Empty` if the software doesn't have a product code.
* The `User` property will only be set for software installed for specific users. For global software, the `User`
property will be `[String]::Empty`.
* The `InstallDate` property is set to `[DateTime]::MinValue` if the install date can't be determined.
* The `Version` property is `$null` if the version can't be parsed
PARAMETERS
-Name <String>
The name of a specific program to get. Wildcards supported.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Carbon.Computer.ProgramInstallInfo.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CProgramInstallInfo
Demonstrates how to get a list of all the installed programs, similar to what the Programs and Features UI shows.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-CProgramInstallInfo -Name 'Google Chrome'
Demonstrates how to get a specific program. If the specific program isn't found, `$null` is returned.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-CProgramInstallInfo -Name 'Microsoft*'
Demonstrates how to use wildcards to search for multiple programs.
RELATED LINKS
SYNOPSIS
Gets information about the programs installed on the computer.
SYNTAX
Get-CProgramInstallInfo [[-Name] <String>] [<CommonParameters>]
DESCRIPTION
The `Get-CProgramInstallInfo` function is the PowerShell equivalent of the Programs and Features UI in the Control
Panel. It inspects the registry to determine what programs are installed. It will return programs installed for
*all* users, not just the current user.
`Get-CProgramInstallInfo` tries its best to get accurate data. The following properties either isn't stored
consistently, is in strange formats, can't be parsed, etc.
* The `ProductCode` property is set to `[Guid]::Empty` if the software doesn't have a product code.
* The `User` property will only be set for software installed for specific users. For global software, the `User`
property will be `[String]::Empty`.
* The `InstallDate` property is set to `[DateTime]::MinValue` if the install date can't be determined.
* The `Version` property is `$null` if the version can't be parsed
PARAMETERS
-Name <String>
The name of a specific program to get. Wildcards supported.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Carbon.Computer.ProgramInstallInfo.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CProgramInstallInfo
Demonstrates how to get a list of all the installed programs, similar to what the Programs and Features UI shows.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-CProgramInstallInfo -Name 'Google Chrome'
Demonstrates how to get a specific program. If the specific program isn't found, `$null` is returned.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-CProgramInstallInfo -Name 'Microsoft*'
Demonstrates how to use wildcards to search for multiple programs.
RELATED LINKS