I am new to Powershell and Powercli... but i manager few ESX environments and really would like to do as much as possible via powershell. I am trying to do as much as i can via Powershell. On with the help I need:

I used this one liner to create VMs from templates. But the problem is there has to be some user input after each new VM is created.
New-VM name -Template template -VMHost VMHost -Datastore Datastore

What i would like to do is be able to import via CSV the name of the new vm, the template to use, the host to put the new vm and the datastore all from a CSV. I don't know if it is as easy as below, but i kept getting errors.

@EdConde - it looks like the -Name specifier is missing for New-VM which could cause problems (I don't have the VMware powershell tools, and can't check if this is the proper position for the name) Other than that this looks pretty good - if this isn't the issue, can you post a sample CSV and whatever errors you are getting.
–
MattBMar 17 '10 at 14:45