Leonardo wroteThere is NO waiting phase-2 in my system with only ONE (loged-in) legitimate user, running with UAC off.
OK, but what i have learned after creating another user account in my computer is:
software, system, default, NetworkService and LocalService Hives compaction process takes place at Phase-1 at the setup process.
The other users hives compaction process takes place after login to each user and RegCompactPhase2 at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
remains there until you login to each user you selected to compact and the phase2 ends with success (or maybe eventually is removed?)
(by the way regcompact and regcompactphase2 are bit by bit the same)
So RegCompact cannot compact the hives of a user with no logon rights.
Another thing I found is that if you have UAC turned on, RegCompatPhase2 doesn't run at startup and remains in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
A way to not turn off UAC is to manually run RegCompactPhase2, UAC prompts an then Phase2 begins.
And always manually restart the system after the process.