I have come across a number of issues recently where when installing Lync or Exchange on a virtual server it has continually prompted for restarts.
In Lync this has always been at the point that the SQL database is installed for SE; it usually restarts then picks up the install and continues but in this instance it would restart and after several minutes request another restart and so it goes on.
In Exchange it occurred as part of the readiness checks; it would report an outstanding restart was required, irrespective of how many times the server was rebooted.
The issue seems to be caused by the ‘PendingFileRenameOperations’ registry key.
Normally this field would be cleared down on restart but this wasn’t happening.
and delete the entries in the ‘PendFileRenameOperations’