VMware Cloud Community
quadoss
Contributor
Contributor

Remove-VM error

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.

0 Kudos
4 Replies
LucD
Leadership
Leadership

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

quadoss
Contributor
Contributor

Thank you so much for the quick response.  This helps.

0 Kudos
quadoss
Contributor
Contributor

One other question, Is there any other way to remove the VM apart from using the vSphere Client?

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos