i found the solution in another forum:
"Yessssss!!! removing the Windows Activation Technologies folder completely and the Windows.UI.Immersive.dll in C:\windows\System32 really did the trick! THX!!!
so i started task manager(ctrl+alt+del) and chose file/New task.
To start explorer, type C:\
explorer opens, then go to view/folder options, set “Show hidden files” and uncheck the “Hide protected operating system files”.
Now you can see the “Windows Activation Technologies” folder.
I could delete the 2 files in the folder, but not the Data folder because of permissions (alltough i’m admin)
You have to become owner of the WAT folder before you can delete it, right click/properties/security tab/advanced
I also removed the inheritance option, and made “everybody” the owner of the WAT folder. Also uncheck the read-only option after you changed the owner (right click/properties)
Now i could delete the WAT folder.
I also did the sfc /scannow in console (ctrl+alt+del/file/New task. cmd as administrator
So basically when i only did sfc /scannow the problem kept returning, after 1 minute i was logged off automatically. Only when i completely removed the WAT folder and the dll, the problem was gone!!!"