Monday, August 26, 2013

DSQuery Active Directory Attributes

DSQuery is a great tool for querying Active Directory however the syntax is a little tricky and difficult to use especially if you do not use it on a regular basis.  This is only a small post to reference the syntax to query all Active Users in the domain to display only two attributes:
  • The users display name
  • The users department
Dsquery * -filter "(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))" -attr displayname,department

Feel free to use this article when doing basic queries for active directory attributes against user accounts.

4 comments:

  1. thnak you for information
    I hope to see my site also supports this service
    submit your web sites and get more traffic, Get a free listing at link Directory

    Free Link Directory

    ReplyDelete
  2. Not necessarily usual to discover amazing deluxe merchandise with regard to this kind of reasonable price tag, however look at enterprise has changed much during the past several years who at this time devices happen to be not anymore to choose from for that well-to-do very few. You will get the particular classy seem and not having to pay for exceptionally big rates. Therefore you skills celebs often choose to be noticed and be exclusive? Certainly, the possibility that so several keep going returning to Breitling looks after really should inform you exactly how fine they are simply. Their level of popularity does not threaten his or her appeal or simply draw in the least! Subsequently after witnessing remarkable gents like families donning these products, it is actually difficult to not prefer to create running watches arranged! That running watches, as we all know, are actually incorporate a sought-after swiss watches available, not only because of the seems, but more whilst they may not dependability plus most significantly, typically the perception involving freedom that is included with them all. This particular can make these people the principle chosen many of the leading bands all around. This may not unanticipated in the end, provided the dream invested in within the many years in to getting specific, responsible, not to mention let us never rule out beautiful, pieces. Yet i want to make it clear before it starts: My group is not likely sharing bargain replicas that do not necessarily take a position the chance to go away down mainly because amazing http://www.hotreplicaonline.com. After all luxury wristwatches with an remarkable similarity towards the amazing designer watches. Although regardless of whether they have got the many factors you are looking for in the check out, their own incontrovertible gain can be the high cost.

    ReplyDelete
  3. An easy query you have shown and explained that a good programmer can easily hit the results and solve the errors occur in the program. windows application development

    ReplyDelete