dsquery inactive

  • Thread starter Thread starter James Roman
  • Start date Start date
J

James Roman

When I run the following command:

dsquery user -limit 0 - inactive 12

I get the following response:

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.

I can not find any reference to what causes this error or
what version of AD supports the command. Can anyone help?

Thanks
James
 
dsquery is new to Windows Server 2003 so I would guess you are getting this
error running against a Windows 2000 domain?
 
When I run the following command:

dsquery user -limit 0 - inactive 12

I get the following response:

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.

I can not find any reference to what causes this error or
what version of AD supports the command. Can anyone help?

Thanks
James
Hi James,

IIRC the query is running against some attribute (like logon or logouttime)
which is only replicated in Windows Server 2003 Native Mode. In all other modes
this attribute is held on the local domain controller and therefor you would
need to query all dc's for the information which is not done by dsquery.

Gruesse - Sincerely,

Ulf B. Simon-Weidner
 
I have the same problem even I run "dsquery user -inactive 4" on a Windows Server 2003 domain controller, anything I need to do to modify the configuration of WS2k3 to make it support this query?
 
Back
Top