I'm trying to clone a list of VM's to an alternate datastore, I have a list of VM's in a .CSV file.
Did you already try with changing that line to
$VMHost = Get-VMHost -Name "hostname.test"
Adding the Verbose switch, and/or the WhatIf switch, on the New-VM cmdlet might provide some more feedback.
For testing I would in any case remove the RunAsync switch
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you already try with changing that line to
$VMHost = Get-VMHost -Name "hostname.test"
Adding the Verbose switch, and/or the WhatIf switch, on the New-VM cmdlet might provide some more feedback.
For testing I would in any case remove the RunAsync switch
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That worked. Thanks a bunch..
