Here are some examples:
Back To Basics: Creating and Deploying Templates with PowerCLI – Part 7 | Mike Laverick...
http://blog.vmpros.nl/2011/01/16/vmware-deploy-multiple-vms-from-template-with-powercli/
Creating a New VM from a Template:
New VMs from existing templates can be created with a very simple script that reference the various variables required to create the VM including such requirements as the VM name, Template, Datastore, ResourcePool (which can be the host, cluster or resource pool name), VM Folder location and what Guest Customization to use.
New-VM -Name corphqdb03 -Template win2012-R2 -Datastore platinum -ResourcePool GoldCluster01 -Location CorpHQ -OSCustomizationSpec “Windows 2012 R2 – CorpHQ” Start-VM corphqdb03
Here are some examples:
Back To Basics: Creating and Deploying Templates with PowerCLI – Part 7 | Mike Laverick...
http://blog.vmpros.nl/2011/01/16/vmware-deploy-multiple-vms-from-template-with-powercli/
Creating a New VM from a Template:
New VMs from existing templates can be created with a very simple script that reference the various variables required to create the VM including such requirements as the VM name, Template, Datastore, ResourcePool (which can be the host, cluster or resource pool name), VM Folder location and what Guest Customization to use.
New-VM -Name corphqdb03 -Template win2012-R2 -Datastore platinum -ResourcePool GoldCluster01 -Location CorpHQ -OSCustomizationSpec “Windows 2012 R2 – CorpHQ” Start-VM corphqdb03