Note by default this will do computer objects, you just need to adjust the
filter to do users and it does all of the work based on pwdLastSet. 

The switch to use would be 

-f "&(objectcategory=person)(objectclass=user)" 



  joe


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Depp, Dennis M.
Sent: Tuesday, August 03, 2004 5:48 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] dsquery

You need OLDCMP which can be found at
http://www.joeware.net/win32/index.html near the bottom of the page.
The output of OLDCMP can either be a csv, html or dhtml file.  

Dennis 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cody Fleming
Sent: Tuesday, August 03, 2004 12:07 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] dsquery


Ok, good to know,

Is there an alternative way to identify User objects that have not logged on
in given amount of time 'Stale'?  I'd like to be able to first query this or
log it to a file then optionally be able to do a remove or something like
-dsrm.

Thanks,

Cody

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Free, Bob
Sent: Monday, August 02, 2004 3:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] dsquery


>Does 'dsquery -inactive' work against a Windows 2000 domain with SP4?

Nope, it needs uses an attribute called lastLogonTimestamp that is not
available in 2000.  

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cody Fleming
Sent: Monday, August 02, 2004 12:18 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] dsquery


Hello,
 
Does 'dsquery -inactive' work against a Windows 2000 domain with SP4?
 
Here is what I ran from an XP workstation and W2K3 member server:
 
' dsquery user dc=domain,dc=company,dc=com -inactive 12 '
 
I get the following error:
 
' dsquery failed:The parameter is incorrect.:Windows could not run this
query because you are connected to a domain that does not support this
query. '
 
 
The other switches seem to work fine, maybe I missed something in the
syntax?
 
Thanks,
 
Cody

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/

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/

Reply via email to