Tuesday, July 24, 2018

How to enable disabled account in windows if you could not login.

Almost all the way to enable login in windows assume that you can log in to windows, but what if you cannot? What to do if you accidentally locked you computer?
Solution is pretty simple: Boot from windows CD or USB drive.
When you see windows setup screen press "Shift" + "F10", this open command prompt.
Then you need to replace utilman.exe file to cmd.exe to do this enter following commands:

copy d:\windows\system32\utilman.exe d:\
copy /y d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe

Usually windows is located on drive d: if it is located in different drive correct commands accordingly.

Now type:

wpeutil reboot

after PC reboots and you see login screen press "Easy Of Access" icon and command prompt opens.

Now you can enable disabled users. For example if you want to enable disabled builtin administrator:

net user Administrator /active:yes

Now reboot computer and try to login with administrator account.

Friday, July 20, 2018

User profile service failed to sign in

Logon to windows(in my case win8.1) failed with error "user profile service failed to sign in", "user profile cannot be loaded". I was able to create user, but it was impossible to login with that user. Users with already created profiles can login without any problem.
After browsing internet for one day no solution was found. I check system integrity (sfc /scannow), check disk for errors (chkdsk), made restore of system files (dism utility), check registry and etc. All was unsuccessful. The problem was that something was wrong with default profile permissions. To fix this issue go to c:\Users\Default right click on that folder, select "properties"->"security"->"advanced"->"change permissions"->select checkbox "replace all child object permission entries from this object"  and click "OK"

Then try to login.