Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



dsquery -limit command not working

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-10-2008
Member
 
Join Date: Nov 2004
Posts: 15
dsquery -limit command not working

As my title says I’m facing some problem with dsquery -limit command. I wanted to know return more than 100 results from AD. For doing the same I used the following command:

Quote:
dsquery user OU=_Users,OU=DCA,OU=Locations,DC=sm,DC=doi,DC=net –limit 300 |
dsget user -dn -desc -profile -hmdir -loscr > adusersv3.txt
But I guess I’m making some mistake due to which it keeps on giving me the following error message:

“dsquery failed:`-limit' is an unknown parameter.
type dsquery /? for help.dsget failed:`Target object for this command' is missing.”


So I request you people to please help me out and let me know the proper method.

Thank you very much.

Reply With Quote
  #2  
Old 06-10-2008
Member
 
Join Date: Jan 2006
Posts: 605
As far as i know the problem may when dsget encountered a user with a Common Name that contains an embedded quote.

There may be possibilities that you might have a similar user name? SO i'll suggest you to try troubleshooting by changing the -limit value. Hope it works.
Reply With Quote
  #3  
Old 06-10-2008
Member
 
Join Date: Nov 2004
Posts: 15
Re: dsquery -limit command not working

I appreciate your help Janos. But can you please be more specific what exactly you mean by "similar user name". However I changed the limit to 200 and still get the same error.Thanks again.
Reply With Quote
  #4  
Old 09-09-2010
Member
 
Join Date: Sep 2010
Posts: 1
Re: dsquery -limit command not working

I know what you are doing wrong. It is the syntax that is incorrect. To keep it simple, if you would like to list all objects in Active Directory, use the following:

Code:
dsquery * -limit 10000
You have to give the amount to limit the search by. I believe you are using the following syntax instead...

Code:
dsquery * -limit
You can modify as needed to suit your needs.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "dsquery -limit command not working"
Thread Thread Starter Forum Replies Last Post
Limit Disk Space Used by Offline Files Group Policy is not working properly Jeevan Das Operating Systems 5 14-08-2010 11:25 PM
Upload limit not working in uTorrent Erinyes Technology & Internet 6 26-06-2010 10:26 AM
How to limit upload limit for each torrent Asclepius Technology & Internet 6 18-06-2010 06:05 AM
dsquery and dsget aconti Active Directory 1 01-11-2009 04:09 PM
Command prompt "COPY" command not working in brand new Windows Vis CMD COPY command not working in Vista Vista Help 7 06-02-2008 02:50 AM


All times are GMT +5.5. The time now is 07:00 PM.