Hi Guys,
I'm new to PowerCLI and I'm trying to run a simple command and seeing the below message after connecting to the ESXi server
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Get-VM VM_guest | Remove-VM -DeletePermanently -Confirm:$false
Remove-VM : 4/22/2013 2:02:44 PM Remove-VM fault.RestrictedVersion.summary
At line:1 char:26
+ Get-VM VM_guest| Remove-VM <<<< -DeletePermanently -Confirm:$false
+ CategoryInfo : NotSpecified: (:) [Remove-VM], RestrictedVersion
+ FullyQualifiedErrorId : Client20_MoServiceImpl_Remove_SingleObject_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.RemoveVM
Want to know the cause of the issue.
Thanks in advance.
You seem to be running a free ESXi version.
On an ESXi with a free license you can only do the Get- type cmdlets, no cmdlets that make changes are accepted I'm afraid.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you so much for the quick response. This helps.
One other question, Is there any other way to remove the VM apart from using the vSphere Client?
Normally you can remove a VM in several ways, but with a free ESXi hypervisor you're limited to the vSphere client afaik.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference