Most Windows errors occur after you log in to your computer. However, the User Profile Service Failed the Logon error doesn't allow you to log in at all, which is why it's harder to fix than other ...
Open the following path: Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options ...