LucD
Leadership
Leadership

I have to come back to my original question, are you sure that only 1 VM is returned when you do a Get-VM with that name?
That's for now the only possibility I see.

The error states that it receives an array where it expects a single value.

You could also check by doing a

$spec | Format-Custom -Depth 2

before calling the method.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos