Site Meter Microsoft Talk » Blog Archive » 3rd Party Tools for Managing Active Directory

3rd Party Tools for Managing Active Directory

by Alpesh Nakar

microsoft-logo Some Third-Party Gems since Active Directory is based on LDAP standards, you can query and modify it using any tool that can speak LDAP. Many third-party vendors have released fee-based tools to assist you in administering Active Directory, but sometimes you find a treasure that has been made available to the community at no charge. Such is the case with a collection created by Directory Services MVP Joe Richards, available for download from joeware.net/freetools. There you’ll find numerous tools to serve many different functions. Three that I turn to again and again are adfind, admod, and oldcmp.

Adfind and Admod

Adfind and admod are similar to dsquery and dsmod; adfind is a command-line query tool for Active Directory, and admod can create, delete, or modify one or more Active Directory objects.

Unlike the ds* tools that have multiple submenus and different switches depending on the type of object, adfind and admod have a consistent syntax regardless of the type of query or modification you’re trying to perform. The basic syntax for adfind is:

adfind –b <Search Base> -s <Search Scope> -f <Search Filter>
    attributesDesired

So a query for the DN and description of all computer objects within your domain would be:

adfind –b dc=contoso,dc=com –s subtree –f (objectclass=computer) dn
    description

A query for all user objects would look like this:

adfind –b dc=contoso,dc=com –s subtree –f "(&(objectcategory=person)
    (objectclass=user))" dn description

Notice that except for the contents of the LDAP query, the syntax has not changed.

As you work with adfind, you’ll find a number of shortcut operators that can save you a lot of typing. For example, the -default switch can replace -b dc=contoso,dc=com in the previous example and search your entire domain; -gc searches against a global catalog (GC) and returns all users in your Active Directory forest. You can also use the -rb switch to set a relative base for your search; if you want to search the Training OU in the phl.east.us.contoso.com domain, you can save yourself quite a bit of effort by simply specifying –default –rb ou=Training rather than –b ou=Training, dc=phl,dc=east,dc=us,dc=contoso,dc=com.

Adfind can also perform a number of advanced search functions that can’t be easily managed at the command line otherwise, including those shown in Figure 4.

An example using the –asq switch would be "Show me the group memberships of the members of the HelpDesk," like this:

adfind –default –rb cn=HelpDesk,ou=IT –asq member memberOf 

Admod, as its name suggests, is used to modify objects within Active Directory. As with adfind, there are no specialized submenus with particular syntaxes to remember; admod uses the same syntax regardless of the type of object you’re working with. You can also use admod to add, move, rename, delete, and even undelete objects simply by adding the appropriate switch, such as -add, -rm, -move, -undel. And just as with dsquery and dsmod, you can also use the | character to pipe the results of an adfind query into admod.

Note that performing an undelete with admod simply performs a tombstone reanimation operation, in which most of the objects attributes have been removed. To fully restore an object and all of its attributes, you’ll still need to perform an authoritative restore of the object.

Oldcmp

There’s one additional joeware tool I consider an indispensable part of my automation toolkit: oldcmp, which scans your Active Directory database for computer accounts that have not been used in a specified number of weeks and can do the following:

  • Create a report of accounts without taking any action against them
  • Disable the unused computer accounts
  • Move the computer accounts to a different OU that you designate
  • Delete the computer accounts outright

Note that because oldcmp has the potential to wreak serious havoc on your directory, it has a number of built-in safety features. It will not delete any account that has not already been disabled (and without manually specifying a "No really, I mean it!" command-line switch). It will not modify more than 10 objects at a time without a similar "No really, I mean it!" switch, and it absolutely will not do anything to the computer account for a domain controller.

Despite the now-misleading name of the tool, Joe has updated oldcmp so that it will perform similar functions for user accounts that have not been used for a certain amount of time as well.

For a small Active Directory environment or one where you’re only working with one or two additions or changes at a time, the GUI tools such as Active Directory Users and Computers might be sufficient for day-to-day administration. But if you’re adding and modifying large numbers of objects on a daily basis or simply want a more streamlined solution for your administrative tasks, moving to the command line can greatly speed up the process of creating, modifying, and deleting objects within Active Directory. As you’ve seen, there are a number of flexible and powerful tools available free of charge, both built right into Windows and downloadable from members of the Active Directory community. Any of these tools has the ability to greatly enhance your productivity as an Active Directory administrator, and together they become even more essential to your daily work life.

Recommended  Microsoft Office Downloads : September 28 Ed | Word: Compatibility Pack for End Users


Leave a Reply


About Microsoft Talk

My name is Brick ONeil, and I’ve been with the 451 Press Network since March 2007. I’m the new blogger for Microsoft Talk. We’ll be discussing ‘About Microsoft’ itself. What’s happening, who’s coming/going, what new technologies they’re coming out with, updates and upgrades. I’ll try to bring you news each day that impacts your daily life and use of Microsoft products, or just interesting information I think you’ll enjoy

Microsoft Talk Author(s)

Technology Channel Posts

  • Father’s Day Gadget Gifts
    Dad’s special day is just days away. Be sure not to forget to gift your father or husband on this special day, June 20th. I personally got my husband an advanced Father’s Day gift and bought for [...]
  • Samsung’s BD-P4600 is a Fancy BluRay Player
    Released yesterday, this latest BluRay player from Samsung definitely stands out in plenty of ways. The unit doesn’t look like any player. It comes with metal brackets for mounting to the [...]
  • EMS Mouse
    Well, I think I would like this very much. Sitting in front of the computer for many hours in a day can be a pain in the back and I get relief from a massage procedure. But when a therapist [...]
  • Load-Ding Device Organizer
    If you have most of your gadgets cluttered and lying around the house as you charge them, a device like this will definitely have tons of use for you. It's a great solution for keeping your [...]
  • Sony Playstation’s PSP GO
    The web is abuzz with rumors of Sony Playstation’s latest upcoming mobile game portable…the PSP GO! The new design of the very popular handheld unit features an even lighter more compact [...]
  • Apple’s Newest iPhone 3G S
    Apple early today has announced the release of the newest iPhone 3G S, which they claim to be the “most powerful” iPhone yet. The latest unit is packed with so many more features than the [...]
  • Remote Pet Feeding & Viewing Camera Kit
      We can’t deny that with today’s lifestyle, pets are treated like actual human beings. So that even ideas like this actually make sense. There are pet-owners now who regard their dogs as [...]
  • Nokia N97 Worldwide Release this June
    The latest in the Nokia line of handsets will be out in the over seventy-five countries beginning this June. The Nokia N97, which is Nokia’s very first mobile computer/cellphone, will be made [...]
  • Della Website
      Della is a specialty website operated by Dell Computers with the female population in mind. The site is so female oriented and comes with tips like calorie counting, the right way to [...]
  • Sony Ericsson’s Satio
    Unveiled recently, Sony Ericsson’s Satio is marketed as the ultimate multi-media device. The gadget is a camera phone that should appeal to every budding amateur photographer. The gadget boasts of [...]

Hot Off The Press

  • HUGE WWE Tour Starts This Week-End
    World Wrestling Entertainment journey for this HUGE week-end tour begins tonight in Palm Springs, California. heading over to Australia for the Raw roster, then ending in the Philippines with [...]
  • 4TH OF JULY REMEMBRANCES
    Tomorrow is the Fourth of July, Independance Day here in the U.S., and I thought it only appropriate to spend a few minutes thinking about the price paid for our "freedom". Have you ever [...]
  • Interviews are going up!
    At long last! We have interviews going up at CBS2! So check it out here, as Diane interviews. It's hard to hear Diane, as usual, so up your volume a bit! (I'm sure someone will youtube them too - [...]
  • QWSTION Office Bag
    Don’t forget your office essentials, connect to business as-you-go. The two-way access reveals a separate 17-inch laptop compartment with neoprene padding for extra protection. Front section [...]
  • Happy Birthday, Thomas Gibson!
    Here's a picture of Thomas Gibson looking all smiley, which I thought was appropriate for his birthday. Wish Thomas the best, and have a happy Third and Fourth of July! Have a safe weekend and [...]
  • Bacon Heart T-Shirt
    Show the world your unhealthy love for the good stuff with this Bacon Heart T-Shirt from bustedtees. America's national meat deserves a shirt like this. And so do you. Check out RetailMeNot.com [...]
  • Little things
    There are a lot of things that suck about being a part time dad. Not having him here all the time. Going half days on holidays and birthdays. The big stuff that you think about when seperated parents [...]
  • Withdrawing from medication
    You know, as I mentioned in a previous post, I have seen some real crazy doctors.  And, had I been as smart man years ago to know that they not only don’t know everything, they also don’t [...]
  • Becoming Medieval
    I'm in a medieval mood, mostly because I'm reading a delightful manuscript by Felicity Pulman. Just wait til it gets published, then you, too, can be in medieval mode. Or... maybe you don't [...]
  • Dog Train
    By Sandra Boynton Energetic, moody, and unpredictable new songs written and illustrated by the energetic, moody, and unpredictable Sandra Boynton. And performed by the most unusual mix of [...]