Hi,
For this problem, you can try this:
1, create a local user account, and add it to the local administrators group
2, leave the domain (as a workgroup computer)
3, use the local user account to login (in this scenario, try locking the computer to see if the user can login again)
4, if yes, reboot the computer and join the domain again
Alex