Hi mohsen Haftlangi,
The error code 0xd07 corresponds to a Windows NT status code indicating that the account has been locked out by the system's security policy after exceeding the maximum threshold for failed login attempts.
To restore access, an administrator must unlock the account using the appropriate Microsoft Management Console snap-in. For domain-joined environments, execute dsa.msc to open Active Directory Users and Computers, locate the user object, and clear the lockout box under the Account tab. For standalone servers, execute lusrmgr.msc to open the Local Users and Groups console, open the user's properties, and uncheck the account is locked out option.
Because RDP lockouts are frequently caused by brute-force attacks on exposed ports, you must audit the server's security logs to identify the source. Open the Event Viewer using eventvwr.msc and filter the Security log for Event ID 4740 to see the lockout timestamp and caller machine name. Additionally, filter for Event ID 4625, which details the specific failed logon attempts. Look for Logon Type 10 in those logs, which explicitly confirms the failed attempts occurred via Remote Desktop, allowing you to trace the source IP address and block it at your firewall.
Hope this answer has brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.
VPHAN