Boot into safe mode, go to the desktop.
hold down the windows logo key and press the R key
in the open box type in, msconfig then click on OK.
From in there go to services and check the box to hide all Microsoft services.
Then go to startup and disable everything.
Reboot.
Does it still happen?
Yes - either system restore your computer to an earlier checkpoint, or restore to factory settings and start again or take it back.
No - start adding in the services a few at a time and keep rebooting and checking. When it starts happening then disable those last few services you start one at a time until you pinpoint the problem. If you manage to get it working fine with all the services running do the same thing with your startup programs.