< Back
Test-ChocolateyPin
Post
NAME Test-ChocolateyPin
SYNOPSIS
Test whether a package is set, enabled or not found
SYNTAX
Test-ChocolateyPin [-Name] <String> [[-Version] <String>] [<CommonParameters>]
DESCRIPTION
This command allows you to test the values of a pinned package.
PARAMETERS
-Name <String>
Name of the Package to verify
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Version <String>
Test if the Package version provided matches with the one set on the config file.
Required? false
Position? 2
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
System.Boolean
NOTES
https://chocolatey.org/docs/commands-pin
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-ChocolateyPin -Name PackageName -Version ''
RELATED LINKS
SYNOPSIS
Test whether a package is set, enabled or not found
SYNTAX
Test-ChocolateyPin [-Name] <String> [[-Version] <String>] [<CommonParameters>]
DESCRIPTION
This command allows you to test the values of a pinned package.
PARAMETERS
-Name <String>
Name of the Package to verify
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Version <String>
Test if the Package version provided matches with the one set on the config file.
Required? false
Position? 2
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
System.Boolean
NOTES
https://chocolatey.org/docs/commands-pin
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-ChocolateyPin -Name PackageName -Version ''
RELATED LINKS