Hello Wassim SFAR BATI,
Thank you for posting in Microsoft Community forum.
1.Based on the description "a message always appear when a user try to connect after password expiration", did you mean there is no such issue if the user did not change her/his password?
2.What did you mean "try to connect"? logon this machine or sign in the user account on this machine?
3.If the same user logon /sign in another machine, does the issue occurs?
4.If a different user changed her/his password and logon /sign in the same machine, does the issue occurs?
5.Is the machine and user in the domain or in workgroup?
Please try to restart the machine when the issue occurs and check if it helps.
Here is a similar thread, you can try the possible actions and check if it helps.
Not enough memory resources - Microsoft Community
I hope the information above is helpful.
If you have any question or concern, please fee free to let us know.
Best Regards,
Daisy Zhou