Discussion:
DSQuery
(too old to reply)
AmytDev
2006-02-28 22:39:17 UTC
Permalink
Anyone have any idea why I can't execute this command? Or what I need to do
specifically to get it to run? I get the following error.

H:\>dsquery computer -inactive 4
dsquery failed:The parameter is incorrect.:Windows could not run this query
beca
use you are connected to a domain that does not support this query.
type dsquery /? for help.

Amytdev
Cary Shultz
2006-02-28 23:00:27 UTC
Permalink
I posted a reply to your "initial" post...

I asked what OS and at what Service Pack level. The ds* tools are really
intended for Windows Server 2003....but do provide some/most functionality
in WIN2000. I *believe* that you would need to be at SP4.....
--
Cary W. Shultz
Roanoke, VA 24012
Post by AmytDev
Anyone have any idea why I can't execute this command? Or what I need to do
specifically to get it to run? I get the following error.
H:\>dsquery computer -inactive 4
dsquery failed:The parameter is incorrect.:Windows could not run this query
beca
use you are connected to a domain that does not support this query.
type dsquery /? for help.
Amytdev
AmytDev
2006-02-28 23:23:27 UTC
Permalink
I am running Windows Server 2003 Sp1 and I execute the commandline on the
domain controller.
Post by Cary Shultz
I posted a reply to your "initial" post...
I asked what OS and at what Service Pack level. The ds* tools are really
intended for Windows Server 2003....but do provide some/most functionality
in WIN2000. I *believe* that you would need to be at SP4.....
--
Cary W. Shultz
Roanoke, VA 24012
Post by AmytDev
Anyone have any idea why I can't execute this command? Or what I need to do
specifically to get it to run? I get the following error.
H:\>dsquery computer -inactive 4
dsquery failed:The parameter is incorrect.:Windows could not run this query
beca
use you are connected to a domain that does not support this query.
type dsquery /? for help.
Amytdev
Paul Williams [MVP]
2006-03-01 07:49:55 UTC
Permalink
I think you need to be in 2003 functional mode to use the -inactive switch.
I imagine the reason for this is that it is checking lastLogonTimestamp.
--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
AmytDev
2006-03-02 22:43:32 UTC
Permalink
What do you mean by Functional mode? Our DCs are Windows 2003 but our servers
and clients are running mixed XP, 2000. I could run the dsquery without the
-inactive switch though.
Post by Paul Williams [MVP]
I think you need to be in 2003 functional mode to use the -inactive switch.
I imagine the reason for this is that it is checking lastLogonTimestamp.
--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Cary Shultz
2006-03-03 00:37:15 UTC
Permalink
There are four Domain Level Modes and there are three Forest Functional
Level Modes in WIN2003.

I would gladly tell you these but I think that you might have more fun doing
a google search. I love to do this as I find out a lot of interesting
articles that all offer a bit of a different perspective on things.

Please understand that I am not trying to be a jerk. If you want, I will
gladly list the different DFLs and FFLs with a brief explanation of each.
However, I really think that it might benefit you to look this up on your
own!
--
Cary W. Shultz
Roanoke, VA 24012
Post by AmytDev
What do you mean by Functional mode? Our DCs are Windows 2003 but our servers
and clients are running mixed XP, 2000. I could run the dsquery without the
-inactive switch though.
Post by Paul Williams [MVP]
I think you need to be in 2003 functional mode to use the -inactive switch.
I imagine the reason for this is that it is checking lastLogonTimestamp.
--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Loading...