I have recently had my laptop restored to factory defaults from Sony after the hardrive failed

but now when I try to update to Windows 8.1 as soon as I log in it is stuck on a black screen with a pop up box in the top left corner saying

Setting up personilzed settings


All I can do is use ctrl + alt +delete to manually start programs using New task in Task Manager or shut down etc

I've resorted to resetting pc back to factory defaults to start again

Any ideas?

Sony Vaio
Model SVE14AJ15M
Intel Core i5
Windows 8 Pro