#StackBounty: #windows-10 #hyper-v Windows 10 Hyper-V, how to completely uninstall, reset all settings

Bounty: 100

Running Windows 10 Pro, v1803 OS 17134.648, 64-bit.

I am having a problem with machines that I’ve previously installed into Hyper-V. I have successfully uninstalled Hyper-V, and have manually removed all vEthernet related NICs. From previous experience of going through this process, if I reinstall Hyper-V, it will remember a number of settings from the previous install, including but not limited to the VMs I had installed (which I have exported to a different location.)

What I want to do now that Hyper-V is uninstalled is to do a clean sweep of all settings. Find registry keys and delete them or reset them to the values they were at when I first enabled the Hyper-V feature. Same with any .vhd*, .avhd*, .xml, etc. files.

I need to get Hyper-V to a state where a new Quick Create VM from a clean (not imported) source runs clean (no boot issues), then I can look to import my exported VMs.

I have found and renamed the following folders (after uninstall) in an attempt to reset everything back to “factory”:

  • C:ProgramDataMicrosoftWindowsHyper-V folder
  • C:UsersPublicDocumentsHyper-V folder, if it exists
  • C:ProgramDataMicrosoftEvent ViewerApplications and Services LogsMicrosoftWindowsHyper-V-Hypervisor
  • C:ProgramDataMicrosoftEvent ViewerApplications and Services LogsMicrosoftWindowsHyper-V-Worker
  • C:Users[logged_in_user]AppDataRoamingMicrosoftWindowsHyper-V

…but this isn’t enough. Something else is being retained.
Is there a tool for doing this? Registry settings that need to be removed or emptied?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.