dsquery

G

Guest

Hi,

I have run the query below to create a list of all users for our Domain.
Which worked fine.

C:\>dsquery user -name * -limit 0 > c:\dsquery

I now want to run a query to see which accounts have been inactive for the
last 2 months so I tried the following.

C:\>dsquery user -name * -limit 0 -inactive 4 > c:\dsquery

But 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.
type dsquery /? for help


Am I doing something wrong? Because it is saying the “domain does not
support this query†but I am running this in the same domain (our only
domain) as the first query.

NOTE:- I am running the query from a windows2003 server where all the domain
controllers are windows 2000.
 
J

Jerold Schulman

dsquery user -name * -inactive 4 -limit 0

See tip 7358 » How can I report all inactive user accounts, and optionally disable them?
in the 'Tips & Tricks' at http://www.jsifaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top