Generic Search of Active Directory

A PowerShell Version 1.0 script to search Active Directory. The program prompts for the base of the query, the LDAP syntax filter, and a comma delimited list of attribute values to retrieve. Results are in list or comma delimited format.

 
 
 
 
 
4.6 Star
(11)
4,447 times
Add to favorites
Active Directory
10/15/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • how to output to a file
    3 Posts | Last post February 06, 2017
    • Sorry if I missed it but I don't see how to output to a file
      I tried to use /csv -.\output.txt  but that didn't do it
    • Sorry I answered my own question...
      
      .\GenericSearch.ps1 /csv | Out-File 'C:\Documents and Settings\administrator\desktop\Powershell\Restult2.txt'
    • I would only add that you can also use the redirection character to redirect the output to a file. For example:
      
      .\GenericSearch.ps1 /csv > c:\Scripts\Report.csv