The computer needs to be restarted before Setup can continue [PendingRebootWindowsComponents]
Exchange Setup can't continue because it detected a pending reboot to complete the installation of other programs or Windows updates.
Why is this happening?
When programs and Windows updates are installed, they make changes to files that are stored on your computer. Some programs or updates need to modify or replace files that are currently in use. When this happens, you need to restart the computer before other programs can be installed.
If the installation of a previous program or Windows update didn't complete successfully, Windows and other programs might think a restart is required. You'll continue to see this error each time you run Exchange Setup if this happens (the failed installation can't fix the condition that indicates a restart is required).
How do I fix it?
Typically, you only need to restart the server to get past this error, but you might get this error again after a restart (for example, additional program or Windows updates also require a restart). Try restarting the server again.
If you see this error after you've restarted the server more than two or three times, try reinstalling any programs or Windows updates that you've installed recently. This might allow a failed installation to complete successfully.
If you still receive this error after multiple restarts and reinstalling recent programs or Windows updates, we recommend that you contact Microsoft Customer Service and Support. They'll help you find the reason why Windows and other programs think your computer needs to be restarted. To contact Microsoft support, go to Support for business and select Servers > Exchange Server.
Although it's tempting, we strongly recommend that you don't attempt to work around this issue by manually deleting or changing registry keys or values. Although you might fix this issue now, manually modifying the registry might cause issues later on. This is especially important if the failed installation was a Windows update.
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server.