Can i check if anyone knows how to lockout a win2k user account once the password expires?

Can it be done thr some registry editing or scripting? thx