Solved

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

Posted on 2013-01-14
2
793 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now