...and interestingly, csvde.exe is a lot quicker: csvde -f csvde.txt -d "DC=mydomain,DC=com" -r "(&(objectCategory=person)(samaccountname=*)(pwdlastset=0))" -p subtree -l 1.1
Tony ---------- Original Message ---------------------------------- From: "Tony Murray" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Thu, 11 Mar 2004 10:26:08 -0500 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/ 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/
