Install-PpWingetApp
Install-PpWingetApp
SYNOPSIS
Install an application using winget
SYNTAX
__AllParameterSets
Install-PpWingetApp [-AppId] <string> [[-Locale] <string>] [[-AllowInstallOfWinGet] <bool>]
[<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
Install an application using winget
EXAMPLES
EXAMPLE 1
Install-PpWingetApp -Id ‘Mozilla.Firefox’
EXAMPLE 2
Install-PpWingetApp -Id ‘Mozilla.Firefox’ -Locale ‘da-DK’
EXAMPLE 3
Install-PpWingetApp -Id ‘Mozilla.Firefox’ -AllowInstallOfWinGet $true
PARAMETERS
-AllowInstallOfWinGet
Allow the installation of winget if it is not installed. Or update winget if it is installed.
Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AppId
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Locale
The locale to use for the installation, for example ‘da-DK’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Custom function not from CapaSystems. Idea from: https://github.com/Romanitho/Winget-Install/blob/main/winget-install.ps1