문제

Assuming that i'm connected to more than one VCenters, how do i use the get-vm command for a specific VCenter and not for all?

Eg: im connected to server1 and server2

i want to get the list of all VMs in server 1 and not server 2.

도움이 되었습니까?

해결책

You can use the -Server switch for Get-VM. i.e.

$server1 = Connect-VIServer server1
$server2 = Connect-VIServer server2
Get-VM -Server $server1
Get-VM -Server $server2
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top