·         You would require a windows installation media, that may be either a CD/DVD or USB.

·         boot from the CD\DVD

 

Below Actions to be performed in Command Prompt in Windows Recovery Environment.

 

· dism /image:C:\ /cleanup-image /revertpendingactions  (C: is the drive where Windows is installed, please confirm the OS drive label before executing the command)

·  1. From Command Prompt open regedit  

· 2.    In regedit, click on HKLM(Hkey_Local_Machine)  

· 3.    Click on file from the menu bar(alt+F if file is hidden) > load  

· 4.    Load the Component hive from E:\windows\system32\config  

· 5.    Select a friendly name for the hive and Name it as "COMP” (For your understanding)  

· 6.    Click and Hilight the name(“COMP”) and search for keys named pendingxmlidentifier and advancedinstallersneedresolving  

· 7.    Delete the keys if found, skip to next step if not found  

· 1.    From command prompt 

· 8.    Type E:  //Assuming E: is the Windows directory//  

· 9.    Cd E:\windows\system32\config  

· 10.  Run command : attrib -s -h -r /s /d  

Run command : Del *.regtrans-ms  

Run command : Del *.BLF 

· 11.  Confirm by pressing Y  

· 12.  Cd E:\windows\system32\config\Txr  

· 13.  Run command : attrib -s -h -r /s /d  

  Run command : Del *.regtrans-ms  

  Run command : Del *.BLF 

· 14.  Sometimes It may seem that Session manager is stuck at POQEXEC.exe  

· 15.  To verify, Open regedit and highlight HKEY_LOCAL_MACHINE and click on File > Load hive > Load "SYSTEM" hive from E:\windows\system32\config and Name it as "TEST"  

· 16.  Now browse to HKEY_LOCAL_MACHINE\TEST\ControlSet001\Control\Session Manager  

· o  Check the value under SETUPEXECUTE and see whether it is empty or not. 

· 17.  If it contains the following entry "poqexec.exe /skip_critical_poq /display_progress \SystemRoot\WinSxS\pending.xml" Remove it and make sure it is empty.  

· 18.  Save and Exit,  

· 19.  Unload the loaded hives TEST and COMP (Select names to unload the hives), In order to unload the hives hillight the names , Click on file from the menu bar(alt+F if file is hidden) > Unload  

· 20. From Command Prompt   

· 21.  Browse to E:\windows\Winsxs\Temp\ Pendingdeletes. (cd E:\windows\Winsxs\Temp\ Pendingdeletes)  

· 22.  Run command : attrib -s -h -r /s /d  

· 23.  Run command : Del *.*  

· 24.  Browse to E:\windows\Winsxs\Temp\Pendingrenames.  

· 25.  Run command : attrib -s -h -r /s /d  

· 26.  Run command : Del *.*  

 

Reboot the machine and verify whether the machine is booting successfully or not.