Find objects at a base level in AD only

Find objects at a base level in AD only

Q. When using the various Get-AD cmdlets, is there a way to only find objects at the base search level?

A. There are a number of cmdlets that can be used to find objects in Active Directory such as Get-AD which will find objects matching the filter at the passed path and in any child container. If you wish to limit the scope of the search you can add the -SearchScope parameter with Base (only find in the path), OneLevel (search one level down) or Subtree (search the entire child hierarchy).

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.