none
Can't remove Hyper-v server role. RRS feed

  • Question

  • Hi 

    I can't remove the hyper-v server 2012 role that show error" The request to add or remove feature on the specified server failed. Teomovel of one or more role, role services, or features failed Access is denied. Error: 0x080070005."

    Please see the problem as capture screen.

    Could you please advice how to fix issue?

    Thank you

    Arkom

    Thursday, May 28, 2020 6:32 AM

All replies

  • Hi,

    First make sure all virtual machines are stopped, if you have any virtual switches you can try deleting them.

    From your screenshot it looks like you don't have enough permissions? Are you a local administrator on the server?

    You can also try with an elevated PowerShell:

    Remove-WindowsFeature -Name Hyper-V

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    Thursday, May 28, 2020 7:24 AM
  • Hi Leon,

    Thank you for reply. I confirmed that I logon as local Administrator and try run "Remove-WindowsFeature -Name Hyper-v" with PowerShell run as administrator. The result as screen capture. Could you please give more idea for remove hyper-v role.

    Thank you

    Arkom

    

    Thursday, May 28, 2020 3:13 PM
  • Did you check the virtual machines and vSwitches?

    Try stopping the Hyper-V services.


    Blog: https://thesystemcenterblog.com LinkedIn:

    Thursday, May 28, 2020 3:16 PM
  • Hi Leon,

    Yes, I deleted the virtual machines and vSwitches already. 

    Bases on my search from internet knowledge. I try run command "bcdedit /set hypervisorlaunchtype auto" and disable antivirus software, after that I try remove hyper-v role again it's working. I'm not sure it's relate or not. 

    Thank you 

    Arkom

     
    • Edited by kom.int Thursday, May 28, 2020 4:54 PM
    Thursday, May 28, 2020 4:36 PM
  • Well do you have any antivirus or anything else installed that may be blocking?

    Is this a Windows Server or Windows client operating system?


    Blog: https://thesystemcenterblog.com LinkedIn:

    Thursday, May 28, 2020 4:45 PM
  • Hi Leon,

    Yes, my server have Symantec antivirus installed with Windows server 2012. 

    Thursday, May 28, 2020 4:59 PM
  • Try temporarily uninstalling Symantec, it has been known to cause issues when installing/uninstalling things.

    Blog: https://thesystemcenterblog.com LinkedIn:

    Thursday, May 28, 2020 5:00 PM
  • Hi Leon,

    Yes, I can completed to remove the hyper-v role already. 

    Thank you for advice me.

    Arkom 

    Thursday, May 28, 2020 5:11 PM
  • Hi kom.int,

    Glad to hear you have resolved the issue. 

    If you don't have any other concerns or questions, please mark useful reply as answer to end this thread.

    Thanks for your time!

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, May 29, 2020 6:28 AM
    Moderator