Mark This works for me:
dsquery user DC=mydomain,DC=com | dsget user -samid -mustchpwd | findstr yes Tony ---------- Original Message ---------------------------------- Wrom: AXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEM Reply-To: [EMAIL PROTECTED] Date: Thu, 11 Mar 2004 09:46:05 -0500 I need to find which users have their accounts currently flagged to require a password change on next logon. Can that be done with dsquery user -stalepwd? If so, what value would I use? Or, is there a different solution I should be using? Thanks! Mark Creamer Systems Engineer Cintas Corporation Honesty and Integrity in Everything We Do List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
