Solved

dsget - the object class of the target does not match the one specified on the command line

Posted on 2013-01-14
2
797 Views
Last Modified: 2013-02-28
Hi Guys,

When i run this command:

dsquery group -name "remoteaccessemployee" | dsget group -members -expand | dsget user -fn -ln > h:\remoteaccesseployee.txt

i get this error message the object class of the target does not match the one specified on the command line.

Please help!

Thanks,
k
0
Comment
Question by:chgl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 38775735
Your issue is that your dsquery is returning an empty list dsget group -members -expand has no information on which to get anything and is returning the error.  If the members expand also returns an empty set later on, you will get a similar error from the dsget user query.
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 38776979
you probably want to run the dsquery on its own to see the result set returned.

Also remember you can wildcard dsquery  e.g. dsquery group -name "*remot*cc*s*"
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question