Enumerazione di istanze di commutatori estendibili Hyper-V
Il cmdlet Get-VMSwitch powerShell enumera le reti virtuali Hyper-V create. È possibile assegnare una o più partizioni figlio Hyper-V a ogni rete virtuale. Lo stack di virtualizzazione Hyper-V crea un'istanza di un commutatore estendibile Hyper-V per una rete virtuale quando viene avviata la prima partizione figlio Hyper-V assegnata alla rete.
Il cmdlet Get-VMSwitch usa la sintassi seguente:
Get-VMSwitch [[-Name] <string>] [-SwitchType <VMSwitchType[]>] [[-ResourcePoolName] <string[]>] [-ComputerName
<string[]>] [<CommonParameters>]
Get-VMSwitch [[-Id] <Guid[]>] [-SwitchType <VMSwitchType[]>] [[-ResourcePoolName] <string[]>] [-ComputerName
<string[]>] [<CommonParameters>]
Nell'esempio seguente viene illustrato l'output dal cmdlet Get-VMSwitch .
PS C:\Windows\system32> Get-VMSwitch
Name Learnable Status
Addresses
---- --------- ------
Virtual Network - 1 2048 {OK}
Virtual Network - 2 2048 {OK}