C:\>dsquery computer -inactive 8 | dsrm - doesn't work

G

Guest

So other commands do, for instance:
dsquery computer -inactive 8 | dsget -<param>

i'm trying to perform this command from my workstation under admins
credentials, but it just gives help of the command which is after "|" sign.

Thank you
 
J

Jerold Schulman

So other commands do, for instance:
dsquery computer -inactive 8 | dsget -<param>

i'm trying to perform this command from my workstation under admins
credentials, but it just gives help of the command which is after "|" sign.

Thank you

How about
dsquery computer -inactive 8 | dsget computer -<param>

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
G

Guest

I've made mistake, of couse it was:
dsquery computer -inactive 8 | dsget computer -<param>

"Jerold Schulman" пишет:
 
G

Guest

Yes it is, as well as Enterprise Admin is.
It doesn't work even under administrator account, that is default domain
account.

"kj" пишет:
 
J

Jerold Schulman

I've made mistake, of couse it was:
dsquery computer -inactive 8 | dsget computer -<param>

"Jerold Schulman" ?????:

This works just fine for me:

dsquery computer -inactive 0 | dsget computer -dn -samid -sid -desc -loc -disabled

If you used -memberof, it must be alone or with -expand only.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
K

kj

Could you post the exact command you are attempting that is not working? I
thought it was the dsrm part that was not functioning.
 
G

Guest

Thank you for collaboration.

The exact command is the next:
C:\>dsquery computer -inactive 8 | dsrm


This string gives the help of dsrm command. However the line:
C:\>dsquery computer -inactive 8
works correctly.



"kj" пишет:
 
K

kj

I can think of only a few things that might be causeing this;

Is it possible that a computername contains Unicode? I don't think so, but
if it is, then you might try adding -uci

Take a look at the output from your dsquery and see if any of the following
might apply.
=============
Remarks:
If a value that you supply contains spaces, use quotation marks
around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
If you enter multiple values, the values must be separated by spaces
(for example, a list of distinguished names).

Commas that are not used as separators in distinguished names must be
escaped with the backslash ("\") character
(for example, "CN=Company\, Inc.,CN=Users,DC=microsoft,DC=com").
Backslashes used in distinguished names must be escaped with a backslash
(for example,
"CN=Sales\\ Latin America,OU=Distribution Lists,DC=microsoft,DC=com").
 
G

Guest

Thank you.
This one did its work:

dsquery computer -inactive 8 -uco | dsrm -uci


"kj" пишет:
 

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