Check for pending reboots at top of the script

Topics: Feature Requests
Mar 19, 2014 at 2:54 PM
Before beginning an installation, it would be helpful if the script detects if any pending reboots are required that may cause the prerequisites installer/hotfixes/sharepoint installer to fail. It should check that all three of the registry keys below are empty of children - if any children exist, a reboot is needed:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\FileRenameOperations

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
Mar 20, 2014 at 12:16 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Sep 8, 2014 at 2:30 PM
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\FileRenameOperations is not a key but a REG_MULTI_SZ value, so it has no child, but the existance should be checked.