다음을 통해 공유


Hyper-V 확장 가능한 스위치 인스턴스 열거

Get-VMSwitch PowerShell cmdlet은 생성된 Hyper-V 가상 네트워크를 열거합니다. 하나 이상의 Hyper-V 자식 파티션을 각 가상 네트워크에 할당할 수 있습니다. Hyper-V 가상화 스택은 네트워크에 할당된 첫 번째 Hyper-V 자식 파티션이 시작될 때 가상 네트워크에 대한 Hyper-V 확장 가능한 스위치의 인스턴스를 만듭니다.

Get-VMSwitch cmdlet은 다음 구문을 사용합니다.

Get-VMSwitch [[-Name] <string>] [-SwitchType <VMSwitchType[]>] [[-ResourcePoolName] <string[]>] [-ComputerName
    <string[]>] [<CommonParameters>]

Get-VMSwitch [[-Id] <Guid[]>] [-SwitchType <VMSwitchType[]>] [[-ResourcePoolName] <string[]>] [-ComputerName
    <string[]>] [<CommonParameters>]

다음 예제에서는 Get-VMSwitch cmdlet의 출력을 보여 줍니다.

PS C:\Windows\system32> Get-VMSwitch

Name                           Learnable Status
                               Addresses
----                           --------- ------
Virtual Network - 1            2048      {OK}
Virtual Network - 2            2048      {OK}

Get-VMSwitch

Msvm_VirtualEthernetSwitch