Block a user after number of bad attempts to login

Hi

How can I configure the Terminal Server to block a user after number of bad attempts to login

Thank you all in advance for any advice on this problem

Nataly