DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Plugin Request: Active Directory users  (Read 5,917 times)

GSz

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 30
Plugin Request: Active Directory users
« on: September 02, 2015, 10:21 PM »
I've been a devout user of DC software for 7 years now, and I think what mouser built here is one of the best communities on the net.
Thanks to everyone who participates here.

And now my request.
Does anyone know, (or knows how to build one), if there is a FARR plugin that will search trough AD users and groups?
I'm looking for something that will make searching for users and groups, with membership easy as pie, as FARR makes it for file content.

Hopefully someone here has the answer.
- Sincerely
    Lockszmith

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Plugin Request: Active Directory users
« Reply #1 on: October 04, 2015, 12:25 AM »
Sorry for the delayed reply.
There is no such plugin, however, FARR can do a pretty good job of executing a commandline tool and letting you search through the results.. is there a commandline tool somewhere that can output active directory users/groups?

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Plugin Request: Active Directory users
« Reply #2 on: October 04, 2015, 12:46 AM »
You can do it using Powershell since it can access pretty much anything to do with ADs, eg:

Searching Active Directory with Windows PowerShell
Get-ADUser
Essential PowerShell Cmdlets for Managing Active Directory - This has good examples of searching for a user
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Plugin Request: Active Directory users
« Reply #3 on: October 04, 2015, 01:02 AM »
excellent -- though note that you could use FARR to do the searching if powershell just prepared the list of all users/groups.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Plugin Request: Active Directory users
« Reply #4 on: October 04, 2015, 01:51 AM »
You can have Powershell format the output any way you like, eg:

Code: ( powershell)
Get-ADUser -Filter * | Format-Table Name

will return a list of names for all AD users - in theory, I've got no way to test it.

Output will be:

Code: (text)
Name
----
name 1
name 2
etc
etc

Add the -HideTableHeaders parameter if you want to lose the headers, eg:

Code: ( powershell)
Get-ADUser -Filter * | Format-Table Name -HideTableHeaders

Get-ADGroup - cmdlet for listing/searching groups.

Full list of AD cmdlets: https://technet.microsoft.com/en-us/library/ee617195.aspx
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: October 04, 2015, 04:59 AM by 4wd »

Original address: https://www.donationcoder.com/forum/index.php?topic=41540.0