Check-in [09ab7c0a65]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | AD search for user properties, with a few (unpractical) sample -Filters. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
09ab7c0a65450ddb6bfe951caedc78a4 |
User & Date: | mario 2018-05-16 18:13:53 |
Context
2018-05-16
| ||
18:15 | NETLOGON registry change to enable WinLogon debugging check-in: 7d3b522d61 user: mario tags: trunk | |
18:13 | AD search for user properties, with a few (unpractical) sample -Filters. check-in: 09ab7c0a65 user: mario tags: trunk | |
18:13 | Query permission groups for folders (Get-ACL) check-in: 08100351ec user: mario tags: trunk | |
Changes
Added tools/bulk/FilterUserSearch.ps1.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # encoding: utf-8 # api: multitool # category: bulk # title: -Filter user search # description: queries AD users by filter, generate list as table/csv # version: 0.1 # vars: # { # name: filter, # type: select, # select: '(office -like "*Oxford*")|(l -like "*France*")|(division -eq 32156)|(description -like "*finance*")|(company -like "*Google") -and (department -like "Engineering*")'. # description: "-Filter attributes or properties. Use -like and * for fuzzy search, or -eq for exact matches. Multiple attributes can be combined with -and / -or, or wrapped in parens." # } # { name: display, type: select, select: "Format-Table|ConvertTo-Html|Out-GridView|Format-List|Export-CSV", description: "How to output result list." } # { name: export_fn, type: file, description: "Filename for Export-cSV" } # { # name: props, # type: select, # select: "SAMAccountName Name EmailAddress|SAMAccountName Name EmailAddress Manager EmployeeType Company Description L Enabled AccountExpirationDate", # description: AD fields to list # } # icon: user # type: inline # depends: psm:ad # priority: experimental # # Shortcut for Get-ADUSer -Filter # A few sample filters in combobox prepared. # Outputs either list, table, or saves to CSV file. # Param( $filter = (Read-Host "filter"), $display = (Read-Host "display"), $export_fn = (Read-Host "export_fn"), $props = (Read-Host "props") ) #-- find $results = Get-ADUser -Filter $filter -Prop * | Select ($props -split "\W+") #-- output Out-DisplayDispatch $result $display $export_fn |