How do I search by Creator with Get-Package?

Feb 27, 2012 at 2:11 PM


I want to find all NuGet packages created by Microsoft.

If I use "Get-Package -Filter Microsoft -ListAvailable", that is not going to give me what I want.

How do I accomplish this?


Feb 27, 2012 at 3:48 PM

You could do something like this:

Get-Package -ListAvailable | where { ($_.Authors -match 'microsoft') -or ($_.Owners -match 'microsoft') }

Note well, however, that just because a package includes 'Microsoft' in its authors or owners fields, doesn't mean it *actually* was made by Microsoft; package authors can put whatever they like into these fields. A better way to find all packages managed by Microsoft is to visit the NuGet Gallery:

Note also that, unlike using the -filter param, piping to where is all done on the client, and so will take considerable longer.

Feb 27, 2012 at 6:48 PM

<mark as answer> :-)  Thanks!