Hello everyone,
I am looking for a script to add Vmware VMs to subclient. I have been poking around Powershell SDK/Commands but i am not successful so far with the latest Powershell v32 SDK
Eventually i need to feed VM Names from csv file and loop through but for now just testing with a single VM.
Add-CVVirtualMachine -ClientName myVCenter -SubclientName z_Subclient_0400PM -EntityType VM -Entity my-vmname
Getting following error:
“Get-CVVirtualMachine : A parameter cannot be found that matches parameter name 'Name'.
At C:\Program Files\WindowsPowerShell\Modules\CommvaultPowerShell\0.2.11\custom\oldsdk\Add-CVVirtualMachine.ps1:166 char:61
+ ... $vmProps = Get-CVVirtualMachine -Name $entity ...
+ ~~~~~
+ CategoryInfo : InvalidArgument: (:) Get-CVVirtualMachine], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Get-CVVirtualMachine
“
Thanks,