PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> New-VM -
name clone1 -Location (Get-Datacenter -Name NOSTG) -VM TLI-BUILD-1
New-VM : Cannot bind parameter 'Location'. Cannot convert the "NOSTG" value of
type "VMware.VimAutomation.ViCore.Impl.V1.Inventory.DatacenterImpl" to type "VM
ware.VimAutomation.ViCore.Types.V1.Inventory.Folder".
At line:1 char:30
+ New-VM -name clone1 -Location <<<< (Get-Datacenter -Name NOSTG) -VM TLI-BUI
LD-1
+ CategoryInfo : InvalidArgument: (:) [New-VM], ParameterBindingE
xception
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,VMware.VimAutomat
ion.ViCore.Cmdlets.Commands.NewVM
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> New-VM -
name clone1 -Datastore datastore1 -VM TLI-BUILD-1
New-VM : 5/3/2013 4:35:24 PM New-VM Could not find StorageResource wi
th name 'datastore1'.
At line:1 char:7
+ New-VM <<<< -name clone1 -Datastore datastore1 -VM TLI-BUILD-1
+ CategoryInfo : ObjectNotFound: (datastore1:String) [New-VM], Vi
mException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNo
tFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
New-VM : 5/3/2013 4:35:24 PM New-VM StorageResource parameter: Could
not find any of the objects specified by name.
At line:1 char:7
+ New-VM <<<< -name clone1 -Datastore datastore1 -VM TLI-BUILD-1
+ CategoryInfo : ObjectNotFound: (VMware.VimAutom...ource Datasto
re:RuntimePropertyInfo) [New-VM], ObnRecordProcessingFailedException
+ FullyQualifiedErrorId : Core_ObnSelector_SetNewParameterValue_ObjectNotF
oundCritical,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM