Skip to content

Find-Package : No match was found for the specified search criteria and package name #11

Description

@flotpg

Hi,

I can't use it anymore, it worked 1-2 years ago - did something change?

Add-SCCMChocoApplication -chocourl "https://chocolatey.org/packages/greenshot" -CMUserCollectionName "All Users" -IconsDir D:\SCCM_Library\Choco\Icons -CMSiteCode TPG
the specified search criteria and package name 'greenshot'.
At C:\Choco_PowerShellModule\SCCMChoco.psm1:241 char:16
+ $package = Find-Package -Name $packageid -ProviderName chocolatey
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage

Cannot find package, please verify if the URL is valid.

C:\Choco_PowerShellModule\SCCMChoco.psm1:244 char:9
+ throw "########### Cannot find package, please verify if th ...
+ CategoryInfo : OperationStopped: (########### C...d. ############:String) [], RuntimeException
+ FullyQualifiedErrorId : ########### Cannot find package, please verify if the URL is valid. ############

CleanShot 2021-01-15 at 17 30 24

Any ideas? Thx a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions