Share via


Find-SCLibraryShare

지정된 컴퓨터 또는 라이브러리 서버에서 라이브러리 공유로 추가할 수 있는 모든 공유를 찾습니다.

Syntax

Find-SCLibraryShare
    [-VMMServer <ServerConnection>]
    -Credential <VMMCredential>
    [-ComputerName] <String>
    [<CommonParameters>]
Find-SCLibraryShare
    [-VMMServer <ServerConnection>]
    -LibraryServer <LibraryServer>
    [<CommonParameters>]

Description

Find-SCLibraryShare cmdlet은 지정된 컴퓨터 또는 라이브러리 서버에서 라이브러리 공유로 추가할 수 있는 모든 공유를 찾습니다. 라이브러리 서버의 경우 이 명령은 이미 VMM(Virtual Machine Manager) 라이브러리 공유인 공유도 반환합니다.

예제

예제 1: 아직 VMM 라이브러리 서버가 아닌 컴퓨터에서 Windows 공유 찾기

PS C:\> $Credential = Get-Credential
PS C:\> Find-SCLibraryShare -Credential $Credential -ComputerName "Server01.Contoso.com"

첫 번째 명령은 Get-Credential 을 사용하여 Server01에서 Windows 공유에 액세스할 수 있는 권한이 있는 사용자 이름과 암호를 제공하고 자격 증명을 $Credential 변수에 저장하라는 메시지를 표시합니다.

두 번째 명령은 이 작업에 유효한 자격 증명이 있는지 확인한 다음 VMM 라이브러리 공유가 될 수 있는 모든 기존 Windows 공유를 표시합니다.

예제 2: VMM 라이브러리 서버에서 공유 찾기

PS C:\> Find-SCLibraryShare -LibraryServer "LibraryServer01.Contoso.com"

이 명령은 LibraryServer01에 있는 라이브러리 공유가 될 수 있는 모든 Windows 공유와 이미 VMM 라이브러리 공유인 모든 공유를 표시합니다.

매개 변수

-ComputerName

VMM이 네트워크에서 고유하게 식별할 수 있는 컴퓨터 이름을 지정합니다. 이 매개 변수에 허용되는 값은 다음과 같습니다.

  • FQDN
  • IPv4 또는 IPv6 주소
  • NetBIOS 이름
Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Credential

자격 증명 개체를 지정하거나 일부 cmdlet의 경우 이 작업을 수행할 수 있는 권한이 있는 계정의 사용자 이름과 암호를 포함하는 실행 계정 개체를 지정합니다. 또는 Restart-SCJob의 경우 다시 시작한 작업을 완료할 수 있는 권한이 있습니다.

PSCredential 개체에 대한 자세한 내용은 을 입력합니다Get-Help Get-Credential.

실행 계정에 대한 자세한 내용은 .를 입력 Get-Help New-SCRunAsAccount합니다.

Type:VMMCredential
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-LibraryServer

VMM 라이브러리 서버 개체를 지정합니다.

Type:LibraryServer
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

VMM 서버 개체를 지정합니다.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

출력

DiscoveredShare[]

이 cmdlet은 DiscoveredShare 개체의 배열을 반환합니다.