Fixing Windows 2012R2 Hyper-V Role Failing at 99 Percent

IT

Fixing Windows 2012R2 Hyper-V Role Failing at 99 Percent

In October 2013, Microsoft released Windows 2012R2, containing many improved features. A good article outlining those improvements can be found here: http://www.petri.co.il/whats-new-in-windows-server-2012-r2.htm#

Although installing the Hyper-V Role is straightforward on a new system, I have seen couple of scenarios where the Hyper-V role will fail on installation. Scenario conditions are outlined below:

  • Fresh install of Windows 2012R2 Server.
  • All Windows Updates applied then rebooted.
  • Post reboot, Hyper-V Role was installed.
  • Rebooted machine to finalize installation of role
  • Machine begins applying, gets to 99%, then fails to install the Hyper-V role. Windows performs rollback.

Resetting Windows Registry Files To Fix Hyper-V Role

The fix that worked for us was to open up a Command Prompt and select Run As Administrator (or create a batch file and run as an administrator) with the following text.

Resetting Windows Registry Files to Fix Hyper-V Role
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%system32wbem
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
regsvr32 %windir%system32tscfgwmi.dll wmiprvse /regserver net start winmgmt for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s cd C:WindowsSystem32wbemAutoRecover
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s

After the commands above have been executed, the following should now run successfully:

  • Install the Hyper-V Role
  • Reboot the machine
  • Hyper-V will now successfully apply

Note: There are several people on Microsoft’s forums that have said installing a fresh copy of Windows 2012R2 also fixes the issue; however, I have not verified this claim. 

Resources used: 

Server 2012 Hyper-V Host Not Responding http://social.technet.microsoft.com/Forums/windowsserver/en-US/db1a9205-…, Accessed November 27, 2013

Hyper-V Role installation fails without reason (Windows Server 2012), http://social.technet.microsoft.com/Forums/windowsserver/en-US/6bd6835a-…, Accessed November 27, 2013

More About the Author

Ideen Jahanshahi

Solutions Architect
Veeam NAS Backup: Integrating with Dell EMC Isilon Those of us who have been in the backup realm a long time remember when Veeam Backup and Replication (Veeam B&R) was one of the top ...
The InterWorks Approach to Great Consulting: Part 3 If you’ve been following along, you know that this blog miniseries is all about dissecting the shared traits that some of my most ...

See more from this author →

Subscribe to our newsletter

  • I understand that InterWorks will use the data provided for the purpose of communication and the administration my request. InterWorks will never disclose or sell any personal data except where required to do so by law. Finally, I understand that future communications related topics and events may be sent from InterWorks, but I can opt-out at any time.
  • This field is for validation purposes and should be left unchanged.

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072