Get-PSRepository
PowerShell 리포지토리를 가져옵니다.
Syntax
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
가져올 리포지토리의 이름을 지정합니다.
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
String[]
출력
관련 링크
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
PSResourceGet
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기