Thursday, October 9, 2014

Windows 7 auto login and prevent user password from expiring

User profile service failed the logon User profile cannot be loaded
How to disable user password from expiring.

Windows 7 auto login :
To activate windows autologin directly from windows type in run : control userpasswords2
You will get this window :
Then select the user you want to autologin and deselect : Users must enter a user name and password to use this computer. , press Apply and you will be ask for the password. Type the password ( it can also be blank ) and OK.

Windows 7 user polices :
In windows home and home premium you do not have the Local Users and Groups (Local) available.
You can try to open it by typing : lusrmgr.msc


To disable the password expiration type at a command promt (cmd) :
wmic useraccount set passwordexpires=false

will set the passwordexpire attribute to all accounts to false.

If you also have autologin activated you will not be able to log in with no user.
To prevent this loop keep pressed the SHIFT key while booting windows or change bios time or reset bios by removing battery so the user password is not expired anymore.