Reply to Message

View discussion in a popup

Replying to:
aleex42
Enthusiast
Enthusiast

Get-VM expectes one VM as argument.

I think you have multiple VMs in $VM.

Just try a foreach loop over $VM:

foreach ($singlevm in $VM){

     Get-VM -Name $singlevm

}

-- Alex (VMware VCAP-DCV, NetApp NCIE, LPIC 2)

View solution in original post