Note: Please don't run the Verifier.exe command, unless you are stress-testing a computer. I did it by mistake, and just reporting here what I did.
I have jumped through so many different hoops on this issue....
Slowest time it took from password to OneDrive starting was 8+ minutes
However recently I noticed a speedy shutdown (they were slow also).
Booted up today and looked in the Diagnostics-performance of Event Viewer and it confirms today's quick boot up at 86725ms which is ok considering I don't have any super/prefetch enabled.
So the things I had done to try to improve this were. Installed a Samsung SSD 860 QVO 1TB SATA. and Ram now 32Gb from 16Gb. This gave some improvement in boot times especially up to the point of password. Also works well in normal program launch etc, pleased
to have that different type of storage (would have gone for the NVMe type but motherboard is not capable...
Now, what I did recently that appears to have fixed things in my case.
from command window
sfc /scannow
dsim /online /cleanup-image /checkhealth
I also went through a nightmare and I don't suggest doing this from the command window, but run the Verifier.exe gui in system32 folder so that you can see what is going on.(are any things being checked on every boot) If you run the "verifier /standard /all"
from a command window it will do that action on every boot until you issue the command to not do it. I was stuck at the logon screen for 30 mins and the task did not complete in that time. In the end I had to boot into safe mode and fire up
the gui version and reset all the verfy jobs it had in the list. (Booted up properly after that which for me was about 30 rotations of the busy icon after entering password). It was at this point that I did the "sfc" and "dsim" commands that found
and fixed some issues and I am back to normal boot times.... phew
Hope this is helpful to someone.