Home > Hyper-V > The operation cannot be performed while the object is in its current state

The operation cannot be performed while the object is in its current state

So today was interesting, in my lab I got one of my Hyper-V host machines in a state and had to change the lab architecture slightly but in doing so I was left with a VM which I no longer required that I could not delete, start or do anything with.

The VM was in a saved state.

image

 

When I attempted to delete, start or anything I got an error saying “The operation cannot be performed while the object is in its current state.”

image

Navigate to C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines and delete the xml file for the VM and just like magic the VM is gone form the console you just need to clean up the files left.

 

image

Advertisements
Categories: Hyper-V
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: