Share via


Get-PSResourceRepository

Kayıtlı depo bilgilerini bulur ve döndürür.

Syntax

Get-PSResourceRepository
   [[-Name] <String[]>]
   [<CommonParameters>]

Description

Bu cmdlet, makinede kayıtlı PowerShell kaynak depolarını arar. Varsayılan olarak, tüm kayıtlı depoları döndürür.

Örnekler

Örnek 1

Bu örnek makinede kayıtlı tüm depoları döndürür.

Get-PSResourceRepository

Name             Uri                                          Trusted   Priority
----             ---                                          -------   --------
PoshTestGallery  https://www.poshtestgallery.com/api/v2          True         40
PSGallery        https://www.powershellgallery.com/api/v2       False         50
psgettestlocal   file:///c:/code/testdir                         True         50

Örnek 2

Bu örnekte belirli bir depoyu almak için Name parametresi kullanılmaktadır.

Get-PSResourceRepository -Name PSGallery

Name         Uri                                        Trusted   Priority
----         ---                                        -------   --------
PSGallery    https://www.powershellgallery.com/api/v2     False         50

Örnek 3

Bu örnekte , ile Gallerybiten tüm depoları almak için Name parametresi kullanılır.

Get-PSResourceRepository -Name "*Gallery"

Name             Uri                                          Trusted   Priority
----             ---                                          -------   --------
PoshTestGallery  https://www.poshtestgallery.com/api/v2          True         40
PSGallery        https://www.powershellgallery.com/api/v2       False         50

Örnek 4

Bu örnekte, adlandırılmış depoların listesini almak için Name parametresi kullanılır.

Get-PSResourceRepository -Name "PSGallery","PoshTestGallery"

Name             Uri                                          Trusted   Priority
----             ---                                          -------   --------
PoshTestGallery  https://www.poshtestgallery.com/api/v2          True         40
PSGallery        https://www.powershellgallery.com/api/v2       False         50

Parametreler

-Name

Aranacak deponun adı. Joker karakterler desteklenir. Bu parametre için sekme tamamlama, kayıtlı depo adları arasında döngüler oluşturur.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:True

Girişler

String[]

Çıkışlar

Microsoft.PowerShell.PSResourceGet.UtilClasses.PSRepositoryInfo