Solved

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

Posted on 2013-01-14
2
794 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
2 Comments
 
LVL 77

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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