Get-PSRepository
PowerShell 리포지토리를 가져옵니다.
구문
Get-PSRepository
[[-Name] <String[]>]
[<CommonParameters>]
Description
cmdlet은 Get-PSRepository
현재 사용자에 대해 등록된 PowerShell 모듈 리포지토리를 가져옵니다.
Microsoft.PowerShell.PSResourceGet의 Get-PSResourceRepository
cmdlet에 대한 프록시 cmdlet입니다. 자세한 내용은 Get-PSResourceRepository를 참조하세요.
예제
예제 1: 모든 모듈 리포지토리 가져오기
Get-PSRepository
이 명령은 현재 사용자에 대해 등록된 모든 모듈 리포지토리를 가져옵니다.
예제 2: 이름으로 모듈 리포지토리 가져오기
Get-PSRepository -Name "*NuGet*"
이 명령은 이름에 NuGet을 포함하는 모든 모듈 리포지토리를 가져옵니다.
예제 3: 모듈 리포지토리 가져오기 및 출력 형식 지정
Get-PSRepository -Name "Local01" | Format-List * -Force
Name : local01
SourceLocation : http://manikb-dev:8765/api/v2/
Trusted : True
Registered : True
InstallationPolicy : Trusted
PackageManagementProvider : NuGet
PublishLocation : http://pattif-dev:8765/api/v2/package/
ScriptSourceLocation : http://pattif-dev:8765/api/v2/artifacts/psscript
ScriptPublishLocation : http://pattif-dev:8765/api/v2/package/
ProviderOptions : {}
이 명령은 Local01이라는 리포지토리를 가져오고 파이프라인 연산자를 사용하여 해당 개체를 Format-List cmdlet에 전달합니다.
매개 변수
-Name
가져올 리포지토리의 이름을 지정합니다.
형식: | String[] |
Position: | 0 |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | True |
와일드카드 문자 허용: | False |
입력
String[]