Best practice for removing/deleting Hyper-V server

Posted on 2011-05-05
Last Modified: 2012-05-11
We have some hyper-v virtual servers that were created for testing and I would like to remove them.  None of them have snapshots.   What is the best practice?  I want to make sure I get rid of all associated files for a clean uninstall or delete.  It seems too easy to just hit the "Remove Server" button in the "Actions" window.  Can someone with experience advise me?


Question by:egalois
    LVL 20

    Accepted Solution

    You need to remove the virtual machines from the Hyper-V Manager first. This, however, does not delete the VHD files, so you have to remove them manually.

    Then, you can remove the Hyper-V role from the server.
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Yes, it's as simple as that.

    Make sure you don't want the virtual machine when you do this later.
    LVL 116

    Assisted Solution

    by:Andrew Hancock (VMware vExpert / EE MVE)
    When trying to delete the VMs, you may get an error message

    Cannot access the settings for the seleceted virtual machine.
    You might not have permission to perform this task.

    Locate the physical files for the VM and the VHD. (AVHD if you had snapshots)

    Change permissions (you may need to take ownership of the files).

    Delete the files in question.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction Windows 2012 is here - it is upon us, and I hope that like me, you will upgrade your Hyper-V to the new version which has been promised to be a lot more stable, flexible and powerful than its predecessor in Windows 2008 R2.  Setting up…
    Introduction RemoteFX is already in use today, but you're probably not aware of it.  With the advent of Windows 2012 and Windows 8, RDP has gotten a whole lot better due to the fact that RDP now uses even more RemoteFX technologies to make desktop …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now